aboutsummaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index f44cee1..64f609d 100644
--- a/commands.c
+++ b/commands.c
@@ -52,7 +52,7 @@ extern int markidx;
extern int prefix;
extern bool extprefix;
-bool cg_quit(arg_t _)
+bool cg_quit(arg_t status)
{
unsigned int i;
@@ -62,7 +62,7 @@ bool cg_quit(arg_t _)
printf("%s%c", files[i].name, options->using_null ? '\0' : '\n');
}
}
- exit(EXIT_SUCCESS);
+ exit(status);
}
bool cg_switch_mode(arg_t _)