char: fix parameter name / type in BSD codepath
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jan 2016 17:35:25 +0000 (17:35 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 11 Feb 2016 12:15:46 +0000 (15:15 +0300)
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>
qemu-char.c

index 2b2c56b87f6ff2ce2fc7653c7d3ffde72fe42897..1b7d5dac7637a79aa88006c69f9f690265024347 100644 (file)
@@ -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;
     }