diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-01-22 17:35:25 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:43:57 -0600 |
commit | 773bf142a90fe3f7e77b8032fd31d752d92d7a3e (patch) | |
tree | 9a1a0c0573db33325586520cd886a79f91efc7c4 /qemu-char.c | |
parent | 3c8a0c701f655daa32e6036ea43c7c20a337d0f6 (diff) | |
download | hqemu-773bf142a90fe3f7e77b8032fd31d752d92d7a3e.zip hqemu-773bf142a90fe3f7e77b8032fd31d752d92d7a3e.tar.gz |
char: fix parameter name / type in BSD codepath
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>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-char.c b/qemu-char.c index 2b2c56b..1b7d5da 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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; } |