Skip to content

Commit

Permalink
char: fix parameter name / type in BSD codepath
Browse files Browse the repository at this point in the history
The BSD impl of qemu_chr_open_pp_fd had mis-declared
its parameter type as ChardevBackend instead of
ChardevCommon. It had also mistakenly used the variable
name 'common' instead of 'backend'.

Tested-by: Sean Bruno <sbruno@freebsd.org>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
berrange authored and Michael Tokarev committed Feb 11, 2016
1 parent 190f34f commit 0850d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qemu-char.c
Expand Up @@ -1796,12 +1796,12 @@ static int pp_ioctl(CharDriverState *chr, int cmd, void *arg)
}

static CharDriverState *qemu_chr_open_pp_fd(int fd,
ChardevBackend *backend,
ChardevCommon *backend,
Error **errp)
{
CharDriverState *chr;

chr = qemu_chr_alloc(common, errp);
chr = qemu_chr_alloc(backend, errp);
if (!chr) {
return NULL;
}
Expand Down

0 comments on commit 0850d49

Please sign in to comment.