From: Daniel P. Berrange Date: Fri, 22 Jan 2016 17:35:25 +0000 (+0000) Subject: char: fix parameter name / type in BSD codepath X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0850d49cb6b808a334528ea9a239f8bdb0d5efca;p=qemu.git 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 Signed-off-by: Daniel P. Berrange Signed-off-by: Michael Tokarev --- diff --git a/qemu-char.c b/qemu-char.c index 2b2c56b87f..1b7d5dac76 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; }