diff options
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 6 |
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 | } |