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>
This commit is contained in:
committed by
Kristian Høgsberg
parent
4bfb82adf7
commit
7172d9e22d
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user