aboutsummaryrefslogtreecommitdiff
path: root/swaygrab
diff options
context:
space:
mode:
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 82d623e7..6ba8fb3e 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -11,8 +11,8 @@
#include "ipc-client.h"
#include "util.h"
-void sway_terminate(void) {
- exit(EXIT_FAILURE);
+void sway_terminate(int exit_code) {
+ exit(exit_code);
}
void grab_and_apply_magick(const char *file, const char *output,