aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
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 /sway/main.c
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 'sway/main.c')
-rw-r--r--sway/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/main.c b/sway/main.c
index dd609214..60a41923 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -90,7 +90,7 @@ int main(int argc, char **argv) {
90#else 90#else
91 fprintf(stdout, "version not detected\n"); 91 fprintf(stdout, "version not detected\n");
92#endif 92#endif
93 exit(0); 93 exit(EXIT_SUCCESS);
94 break; 94 break;
95 case 'V': // verbose 95 case 'V': // verbose
96 verbose = 1; 96 verbose = 1;
@@ -98,10 +98,10 @@ int main(int argc, char **argv) {
98 case 'p': ; // --get-socketpath 98 case 'p': ; // --get-socketpath
99 if (getenv("SWAYSOCK")) { 99 if (getenv("SWAYSOCK")) {
100 fprintf(stdout, "%s\n", getenv("SWAYSOCK")); 100 fprintf(stdout, "%s\n", getenv("SWAYSOCK"));
101 exit(0); 101 exit(EXIT_SUCCESS);
102 } else { 102 } else {
103 fprintf(stderr, "sway socket not detected.\n"); 103 fprintf(stderr, "sway socket not detected.\n");
104 exit(1); 104 exit(EXIT_FAILURE);
105 } 105 }
106 break; 106 break;
107 } 107 }