summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/main.c6
-rw-r--r--swaybg/main.c2
-rw-r--r--swaygrab/main.c4
-rw-r--r--swaymsg/main.c4
4 files changed, 8 insertions, 8 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 }
diff --git a/swaybg/main.c b/swaybg/main.c
index ec64ddb7..69d718c5 100644
--- a/swaybg/main.c
+++ b/swaybg/main.c
@@ -29,7 +29,7 @@ void sway_terminate(void) {
29 } 29 }
30 list_free(surfaces); 30 list_free(surfaces);
31 registry_teardown(registry); 31 registry_teardown(registry);
32 exit(1); 32 exit(EXIT_FAILURE);
33} 33}
34 34
35int main(int argc, const char **argv) { 35int main(int argc, const char **argv) {
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 @@
10#include "ipc-client.h" 10#include "ipc-client.h"
11 11
12void sway_terminate(void) { 12void sway_terminate(void) {
13 exit(1); 13 exit(EXIT_FAILURE);
14} 14}
15 15
16int numlen(int n) { 16int numlen(int n) {
@@ -163,7 +163,7 @@ int main(int argc, char **argv) {
163#else 163#else
164 fprintf(stdout, "version not detected\n"); 164 fprintf(stdout, "version not detected\n");
165#endif 165#endif
166 exit(0); 166 exit(EXIT_SUCCESS);
167 break; 167 break;
168 } 168 }
169 } 169 }
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 }