diff options
| author | Marc-André Lureau | 2016-12-14 13:23:13 +0100 |
|---|---|---|
| committer | Marc-André Lureau | 2017-05-04 13:34:41 +0200 |
| commit | 315dd72d7580b74232cfc8381a86d37999b95199 (patch) | |
| tree | edf0d78e348eda34905456d0cb52ddd586488cbb | |
| parent | mux: simplfy muxes_realize_done (diff) | |
| download | qemu-315dd72d7580b74232cfc8381a86d37999b95199.tar.gz qemu-315dd72d7580b74232cfc8381a86d37999b95199.tar.xz qemu-315dd72d7580b74232cfc8381a86d37999b95199.zip | |
xen: use a better chardev type check
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>
| -rw-r--r-- | hw/xen/xen-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
