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:
Peter Hutterer 2026-04-30 19:32:50 +10:00
parent e88a16ea04
commit 089bc8ec81

View file

@ -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;
}
}