mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-11 19:39:26 -07:00
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>
This commit is contained in:
parent
bed3bb9b7e
commit
315dd72d75
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue