diff options
author | Christoph Gysin <christoph.gysin@gmail.com> | 2015-11-28 15:47:44 +0200 |
---|---|---|
committer | Christoph Gysin <christoph.gysin@gmail.com> | 2015-11-28 23:50:10 +0200 |
commit | 3ba33321de0790d60dc473acee093de5a3650480 (patch) | |
tree | 0ecb798f583540dca71cadc5ba858131f91d8c9b /sway | |
parent | 01617131f110a3a80987706ff6e86c46f2269255 (diff) | |
download | sway-3ba33321de0790d60dc473acee093de5a3650480.tar.xz |
Use macros for exit values
Diffstat (limited to 'sway')
-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) { #else fprintf(stdout, "version not detected\n"); #endif - exit(0); + exit(EXIT_SUCCESS); break; case 'V': // verbose verbose = 1; @@ -98,10 +98,10 @@ int main(int argc, char **argv) { case 'p': ; // --get-socketpath if (getenv("SWAYSOCK")) { fprintf(stdout, "%s\n", getenv("SWAYSOCK")); - exit(0); + exit(EXIT_SUCCESS); } else { fprintf(stderr, "sway socket not detected.\n"); - exit(1); + exit(EXIT_FAILURE); } break; } |