Skip to content
Snippets Groups Projects
Commit 19014498 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

Move opening and closing the device fd into evdev.c


evdev_device_remove() already calls close(device->fd). Move the
close_restricted call there to avoid one privileged call in the backend and
one in the device. And move the open_restricted() into the evdev device too to
reduce the duplicated code in the two backends.

Update to one of the tests: since we'd now fail getting the device node from
the invalid /tmp path, the open_func_count is 0.

Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 0d879fd2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment