char: fix parameter name / type in BSD codepath
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'.
Tested-by Sean Bruno <[email protected]>
Signed-off-by Daniel P. Berrange <[email protected]>
--- qemu-char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-char.c +2 -2
@@ -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
You typoed the qemu-devel address...
thanks
-- PMM
Quoted 33 lines · Daniel P. Berrange
The BSD impl of
qemu_chr_open_pp_fdhad 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 <[email protected]>Signed-off-by Daniel P. Berrange <[email protected]>--- qemu-char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)qemu-char.c +2
-3@@ -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
Michael Tokarev
AppliedQuoted 4 lines · Daniel P. Berrange
The BSD impl of
qemu_chr_open_pp_fdhad 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
Tested-by Sean Bruno <[email protected]>Signed-off-by Daniel P. Berrange <[email protected]>--- qemu-char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)qemu-char.c +2
-2@@ -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 ; }