diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-02-21 10:28:56 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-02-24 01:53:21 +0000 |
commit | 20cf83789df6563828f16fc938ccf05437d366c2 (patch) | |
tree | 2368c5e5006887b6895a935d48000bb8e3ccfdb9 /tools/shared.h | |
parent | 2bfbdfaf6be5ccebfca38a626d5f36430c98ba13 (diff) | |
download | libinput-20cf83789df6563828f16fc938ccf05437d366c2.tar.gz |
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>
Diffstat (limited to 'tools/shared.h')
-rw-r--r-- | tools/shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.h b/tools/shared.h index 18662f63..730e1a45 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -116,7 +116,7 @@ int tools_parse_option(int option, const char *optarg, struct tools_options *options); struct libinput* tools_open_backend(enum tools_backend which, - char **seat_or_devices, + const char **seat_or_devices, bool verbose, bool *grab); void tools_device_apply_config(struct libinput_device *device, |