aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
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 /swaymsg
parent01617131f110a3a80987706ff6e86c46f2269255 (diff)
Use macros for exit values
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 3a2e1ee7..e629bcc2 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -12,7 +12,7 @@
#include "log.h"
void sway_terminate(void) {
- exit(1);
+ exit(EXIT_FAILURE);
}
int main(int argc, char **argv) {
@@ -52,7 +52,7 @@ int main(int argc, char **argv) {
#else
fprintf(stdout, "version not detected\n");
#endif
- exit(0);
+ exit(EXIT_SUCCESS);
break;
}
}