tools: constify the optarg handling of seats
This shuts up scan-build complaining about memory leaks in libinput
debug-events (needs the right combination of --device option and eventually
triggering usage()) and saves us a bunch of unnecessary allocations.
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
Showing
- tools/libinput-debug-events.c 5 additions, 9 deletionstools/libinput-debug-events.c
- tools/libinput-debug-gui.c 1 addition, 1 deletiontools/libinput-debug-gui.c
- tools/libinput-debug-tablet.c 1 addition, 1 deletiontools/libinput-debug-tablet.c
- tools/libinput-list-devices.c 1 addition, 1 deletiontools/libinput-list-devices.c
- tools/shared.c 3 additions, 3 deletionstools/shared.c
- tools/shared.h 1 addition, 1 deletiontools/shared.h
Loading
Please register or sign in to comment