diff --git a/pick.c b/pick.c index 9fad93df..a4895be5 100644 --- a/pick.c +++ b/pick.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -26,9 +25,6 @@ #include "compat.h" -#define EX_SIG 128 -#define EX_SIGINT (EX_SIG + SIGINT) - #define tty_putp(capability, fatal) do { \ if (tputs(capability, 1, tty_putc) == ERR && fatal) \ errx(1, #capability ": unknown terminfo capability"); \ @@ -135,7 +131,7 @@ main(int argc, char **argv) break; case 'v': puts(PACKAGE_VERSION); - exit(EX_OK); + exit(0); case 'x': use_alternate_screen = 1; break; @@ -176,7 +172,7 @@ main(int argc, char **argv) free(choices.v); free(query); - return EX_OK; + return 0; } __dead void @@ -192,7 +188,7 @@ usage(void) " -X disable alternate screen\n" " -q query supply an initial search query\n"); - exit(EX_USAGE); + exit(1); } char * @@ -635,7 +631,7 @@ void handle_sigint(int sig __attribute__((unused))) { tty_restore(); - exit(EX_SIGINT); + exit(1); } void diff --git a/tests/06.t b/tests/06.t index a31bcd88..9f625b13 100644 --- a/tests/06.t +++ b/tests/06.t @@ -1,3 +1,3 @@ description: unknown option args: -0 -exit: 64 +exit: 1 diff --git a/tests/19.t b/tests/19.t index a716ad9a..c1028098 100644 --- a/tests/19.t +++ b/tests/19.t @@ -1,3 +1,3 @@ description: extra argument args: a -exit: 64 +exit: 1