xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PULL 03/21] xen: use a better chardev type check
       [not found] <20170504114232.20318-1-marcandre.lureau@redhat.com>
@ 2017-05-04 11:42 ` Marc-André Lureau
  0 siblings, 0 replies; only message in thread
From: Marc-André Lureau @ 2017-05-04 11:42 UTC (permalink / raw)
  To: qemu-devel
  Cc: Anthony Perard, stefanha, Stefano Stabellini, open list:X86,
	Marc-André Lureau

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xen/xen-common.c b/hw/xen/xen-common.c
index ae76150e8a..a9055e9eba 100644
--- 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;
-- 
2.12.0.191.gc5d8de91d


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-04 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20170504114232.20318-1-marcandre.lureau@redhat.com>
2017-05-04 11:42 ` [PULL 03/21] xen: use a better chardev type check Marc-André Lureau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).