From: Ian Jackson Date: Wed, 21 Oct 2015 14:10:22 +0000 (+0100) Subject: tools/console: Fix build after "xenconsole tolerate tty errors" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fstable-4.2;p=xen.git tools/console: Fix build after "xenconsole tolerate tty errors" 2ddcdd96 "tools/console: xenconsole tolerate tty errors" contains a compile error introduced during conflict resolution of the backport from 4.4 to 4.3: client/main.c: In function 'get_pty_fd': client/main.c:124:10: error: passing argument 1 of 'warn' makes pointer from integer without a cast [-Werror] In file included from client/main.c:35:0: /usr/include/err.h:35:13: note: expected 'const char *' but argument is of type 'int' Fix this. Signed-off-by: Ian Jackson (cherry picked from commit 85ca813ec23c5a60680e4a13777dad530065902b) --- diff --git a/tools/console/client/main.c b/tools/console/client/main.c index fcab3b9753..8ef309f974 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -120,7 +120,7 @@ static int get_pty_fd(struct xs_handle *xs, char *path, int seconds) continue; pty_fd = open(pty_path, O_RDWR | O_NOCTTY); if (pty_fd == -1) - warn(errno, "Could not open tty `%s'", + warn("Could not open tty `%s'", pty_path); } free(pty_path);