path: fix inconsistent use of devnode vs input->path

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-01-16 11:25:26 +10:00
parent db2274eaad
commit b5f06f8329

View file

@ -128,7 +128,7 @@ path_input_enable(struct libinput *libinput)
if (input->device)
return 0;
fd = open_restricted(libinput, input->path, O_RDWR|O_NONBLOCK);
fd = open_restricted(libinput, devnode, O_RDWR|O_NONBLOCK);
if (fd < 0) {
log_info("opening input device '%s' failed (%s).\n",
devnode, strerror(-fd));