mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-19 21:18:10 +02:00
tools: another close() -> xclose change
Fixes: 8afdc52eaf ("tools: Use xclose() over close()")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1475>
This commit is contained in:
parent
e88a16ea04
commit
089bc8ec81
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ handle_device_added(struct context *ctx, struct libinput_event *ev)
|
|||
if (fd == -1)
|
||||
return;
|
||||
if (libevdev_new_from_fd(fd, &ctx->evdev) != 0) {
|
||||
close(fd);
|
||||
xclose(&fd);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue