aboutsummaryrefslogtreecommitdiff
path: root/swaygrab/main.c
diff options
context:
space:
mode:
authorChristoph Gysin <christoph.gysin@gmail.com>2015-11-28 15:47:44 +0200
committerChristoph Gysin <christoph.gysin@gmail.com>2015-11-28 23:50:10 +0200
commit3ba33321de0790d60dc473acee093de5a3650480 (patch)
tree0ecb798f583540dca71cadc5ba858131f91d8c9b /swaygrab/main.c
parent01617131f110a3a80987706ff6e86c46f2269255 (diff)
Use macros for exit values
Diffstat (limited to 'swaygrab/main.c')
-rw-r--r--swaygrab/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaygrab/main.c b/swaygrab/main.c
index 63cf223f..e60d154f 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -10,7 +10,7 @@
#include "ipc-client.h"
void sway_terminate(void) {
- exit(1);
+ exit(EXIT_FAILURE);
}
int numlen(int n) {
@@ -163,7 +163,7 @@ int main(int argc, char **argv) {
#else
fprintf(stdout, "version not detected\n");
#endif
- exit(0);
+ exit(EXIT_SUCCESS);
break;
}
}