summaryrefslogtreecommitdiff
path: root/tools/interactive-evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/interactive-evdev.c')
-rw-r--r--tools/interactive-evdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/interactive-evdev.c b/tools/interactive-evdev.c
index e8afb5e..a49b932 100644
--- a/tools/interactive-evdev.c
+++ b/tools/interactive-evdev.c
@@ -413,7 +413,7 @@ main(int argc, char *argv[])
evdev_offset = strtol(optarg, NULL, 10);
if (errno) {
fprintf(stderr, "error: -n option expects a number\n");
- exit(EXIT_FAILURE);
+ exit(EXIT_INVALID_USAGE);
}
break;
case 'c':
@@ -435,7 +435,7 @@ main(int argc, char *argv[])
" -c (to report changes to the state)\n"
" -d (to enable compose)\n"
" -g (to use GTK consumed mode)\n");
- exit(2);
+ exit(EXIT_INVALID_USAGE);
}
}