]> Git Repo - qemu.git/commitdiff
xen: use a better chardev type check
authorMarc-André Lureau <[email protected]>
Wed, 14 Dec 2016 12:23:13 +0000 (15:23 +0300)
committerMarc-André Lureau <[email protected]>
Thu, 4 May 2017 11:34:41 +0000 (15:34 +0400)
Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
hw/xen/xen-common.c

index ae76150e8ab82a1810286bead27f485242b5a42a..a9055e9eba23042ba5624cb16839d851f400b10a 100644 (file)
@@ -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;
This page took 0.026926 seconds and 4 git commands to generate.