Skip to content

Commit

Permalink
xen: use a better chardev type check
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
  • Loading branch information
elmarco committed May 4, 2017
1 parent bed3bb9 commit 315dd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xen/xen-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 315dd72

Please sign in to comment.