projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed3bb9
)
xen: use a better chardev type check
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Wed, 14 Dec 2016 12:23:13 +0000
(15:23 +0300)
committer
Marc-André Lureau
<marcandre.lureau@redhat.com>
Thu, 4 May 2017 11:34:41 +0000
(15:34 +0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/xen/xen-common.c
patch
|
blob
|
history
diff --git
a/hw/xen/xen-common.c
b/hw/xen/xen-common.c
index ae76150e8ab82a1810286bead27f485242b5a42a..a9055e9eba23042ba5624cb16839d851f400b10a 100644
(file)
--- a/
hw/xen/xen-common.c
+++ b/
hw/xen/xen-common.c
@@
-38,7
+38,7
@@
static int store_dev_info(int domid, Chardev *cs, const char *string)
int ret = -1;
/* Only continue if we're talking to a pty. */
- if (
strncmp(cs->filename, "pty:", 4
)) {
+ if (
!CHARDEV_IS_PTY(cs
)) {
return 0;
}
pts = cs->filename + 4;