input: fix open() call parameters

Third argument of open() is for file creation flags and nor for file open flags.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann committed 2011-12-31 16:27:37 +01:00
1 parent fdf73407b7
commit 7af290efbf
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ int kmscon_input_device_wake_up(struct kmscon_input_device *device)
if (device->fd)
return 0;
device->rfd = open(device->devnode, O_CLOEXEC | O_NONBLOCK, O_RDONLY);
device->rfd = open(device->devnode, O_CLOEXEC | O_NONBLOCK | O_RDONLY);
if (device->rfd < 0) {
log_warning("input: cannot open input device %s: %d\n",
device->devnode, errno);