diff options
author | emersion <[email protected]> | 2017-12-05 10:40:55 +0100 |
---|---|---|
committer | emersion <[email protected]> | 2017-12-05 10:40:55 +0100 |
commit | 90f7f1a0e61fa20ed1b74b9df057aa70abc791ed (patch) | |
tree | e201e4fb9fef471dd2fcf9581e26addfe3550502 /sway/commands/exit.c | |
parent | 83b4c0648d75932c693b8636242202ea728035da (diff) |
Add minimal config subsystem
Diffstat (limited to 'sway/commands/exit.c')
-rw-r--r-- | sway/commands/exit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/commands/exit.c b/sway/commands/exit.c index d294e344..4bb6a97b 100644 --- a/sway/commands/exit.c +++ b/sway/commands/exit.c @@ -1,19 +1,17 @@ #include <stddef.h> #include "sway/commands.h" +#include "sway/config.h" void sway_terminate(int exit_code); struct cmd_results *cmd_exit(int argc, char **argv) { struct cmd_results *error = NULL; - /* TODO if (config->reading) { return cmd_results_new(CMD_FAILURE, "exit", "Can't be used in config file."); } - */ if ((error = checkarg(argc, "exit", EXPECTED_EQUAL_TO, 0))) { return error; } sway_terminate(0); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } - |