diff options
author | Drew DeVault <[email protected]> | 2017-12-05 12:35:51 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2017-12-05 12:35:51 -0500 |
commit | 3fe64482bb269a3dcceeaf1107b9d59dc60eb8d0 (patch) | |
tree | 8fea86b5c928d551723426e196405e5f2f25de2e /sway/commands/exit.c | |
parent | f2aa33ae0f6cd91b88a3f24b65e3e915c3960931 (diff) | |
parent | 7e81d304a3121e92f78527dcf1327e991b0089ac (diff) |
Merge pull request #1498 from emersion/config
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); } - |