summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 14:10:38 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 14:10:38 -0500
commitf791aa01fad7e81223808584212c6a1a4c80ca07 (patch)
treef93d53a62035cdad7f16b97fb28c83c7acfaf14f /command.c
parentc0d0117a963cf8e4dfb28b919087d8a8ecbbca6e (diff)
finish restructuring
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/command.c b/command.c
index 0347544..a21647c 100644
--- a/command.c
+++ b/command.c
@@ -311,7 +311,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
menu_open(ted, MENU_OPEN);
break;
case CMD_NEW:
- ted_new_file(ted, NULL);
+ (void)ted_new_file(ted, NULL);
break;
case CMD_SAVE:
ted->last_save_time = ted->frame_time;
@@ -331,7 +331,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
break;
case CMD_SAVE_ALL:
ted->last_save_time = ted->frame_time;
- ted_save_all(ted);
+ (void)ted_save_all(ted);
break;
case CMD_RELOAD_ALL:
ted_reload_all(ted);
@@ -412,7 +412,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
case CMD_OPEN_CONFIG: {
char local_config_filename[TED_PATH_MAX];
strbuf_printf(local_config_filename, "%s" PATH_SEPARATOR_STR TED_CFG, ted->local_data_dir);
- ted_open_file(ted, local_config_filename);
+ (void)ted_open_file(ted, local_config_filename);
} break;
case CMD_COMMAND_SELECTOR:
menu_open(ted, MENU_COMMAND_SELECTOR);