aboutsummaryrefslogtreecommitdiffstats
path: root/swaygrab
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 /swaygrab
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 'swaygrab')
-rw-r--r--swaygrab/main.c4
1 files changed, 2 insertions, 2 deletions
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 }