summaryrefslogtreecommitdiff
path: root/tools/libinput-debug-gui.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-02-21 10:28:56 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-02-24 01:53:21 +0000
commit20cf83789df6563828f16fc938ccf05437d366c2 (patch)
tree2368c5e5006887b6895a935d48000bb8e3ccfdb9 /tools/libinput-debug-gui.c
parent2bfbdfaf6be5ccebfca38a626d5f36430c98ba13 (diff)
downloadlibinput-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/libinput-debug-gui.c')
-rw-r--r--tools/libinput-debug-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libinput-debug-gui.c b/tools/libinput-debug-gui.c
index d68f1ea1..e594ff98 100644
--- a/tools/libinput-debug-gui.c
+++ b/tools/libinput-debug-gui.c
@@ -1521,7 +1521,7 @@ main(int argc, char **argv)
struct tools_options options;
struct libinput *li;
enum tools_backend backend = BACKEND_NONE;
- char *seat_or_device[2] = {"seat0", NULL};
+ const char *seat_or_device[2] = {"seat0", NULL};
bool verbose = false;
if (!gtk_init_check(&argc, &argv))