summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-12-02 16:16:40 +0100
committerKristian Høgsberg <krh@bitplanet.net>2011-12-05 09:48:42 -0500
commit7172d9e22d49507db158994129672772f4a60a46 (patch)
tree070c490678366f54917f48917672ba8df604fd7f
parent4bfb82adf7feb8b9f646aa43d729fcf8915c56df (diff)
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 <dh.herrmann@googlemail.com>
-rw-r--r--compositor/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/tty.c b/compositor/tty.c
index 5ed921ca..ce2dd561 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;
}