From 7172d9e22d49507db158994129672772f4a60a46 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Fri, 2 Dec 2011 16:16:40 +0100 Subject: [PATCH] compositor-tty: Fix ioctl error handling (!x < 0) is always false and doesn't make sense here. Looks like a typo so remove the negation. Signed-off-by: David Herrmann --- compositor/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/tty.c b/compositor/tty.c index 5ed921c..ce2dd56 100644 --- a/compositor/tty.c +++ b/compositor/tty.c @@ -145,7 +145,7 @@ tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func, mode.mode = VT_PROCESS; mode.relsig = SIGUSR1; mode.acqsig = SIGUSR2; - if (!ioctl(tty->fd, VT_SETMODE, &mode) < 0) { + if (ioctl(tty->fd, VT_SETMODE, &mode) < 0) { fprintf(stderr, "failed to take control of vt handling\n"); return NULL; } -- 2.7.4