summaryrefslogtreecommitdiffstats
path: root/swaymsg
diff options
context:
space:
mode:
authorLibravatar Christoph Gysin <christoph.gysin@gmail.com>2015-11-28 15:47:44 +0200
committerLibravatar Christoph Gysin <christoph.gysin@gmail.com>2015-11-28 23:50:10 +0200
commit3ba33321de0790d60dc473acee093de5a3650480 (patch)
tree0ecb798f583540dca71cadc5ba858131f91d8c9b /swaymsg
parentMerge pull request #271 from sce/move_wlc_init (diff)
downloadsway-3ba33321de0790d60dc473acee093de5a3650480.tar.gz
sway-3ba33321de0790d60dc473acee093de5a3650480.tar.zst
sway-3ba33321de0790d60dc473acee093de5a3650480.zip
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 @@
12#include "log.h" 12#include "log.h"
13 13
14void sway_terminate(void) { 14void sway_terminate(void) {
15 exit(1); 15 exit(EXIT_FAILURE);
16} 16}
17 17
18int main(int argc, char **argv) { 18int main(int argc, char **argv) {
@@ -52,7 +52,7 @@ int main(int argc, char **argv) {
52#else 52#else
53 fprintf(stdout, "version not detected\n"); 53 fprintf(stdout, "version not detected\n");
54#endif 54#endif
55 exit(0); 55 exit(EXIT_SUCCESS);
56 break; 56 break;
57 } 57 }
58 } 58 }