Skip to contentSkip to conversation

char: fix parameter name / type in BSD codepath

PATCH Applied Daniel P. Berrange 3 participants 3 messages Jan 22, 2016 – Jan 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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'.

---
 qemu-char.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-char.c +2 -2
index e133f4f..aa2e660 100644
@@ -1835,12 +1835,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;
     }
Signature · 1 line
2.5.0
#1 lore raw

You typoed the qemu-devel address...

thanks
-- PMM

Quoted 33 lines · Daniel P. Berrange

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'.

---
 qemu-char.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-char.c +2 -3
index e133f4f..aa2e660 100644
@@ -1835,12 +1835,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;
     }
--

2.5.0

#2 lore raw
In reply to Daniel P. Berrange
Quoted 4 lines · Daniel P. Berrange

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'.

Applied to -trivial, fixed qemu-devel@ addres.

Thanks!

/mjt

Quoted 26 lines
---
 qemu-char.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-char.c +2 -2
index e133f4f..aa2e660 100644
@@ -1835,12 +1835,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;
     }