From 92eb3a9b9a284a188c03a1af9a12cf1edec9e845 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sun, 6 Aug 2017 20:04:50 +0100 Subject: Fix failing build on gcc 4.8.4 --- src/commands.c | 2 +- src/commands.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/commands.c b/src/commands.c index 0f31bfc..83ca4bc 100644 --- a/src/commands.c +++ b/src/commands.c @@ -45,7 +45,7 @@ void imv_commands_free(struct imv_commands *cmds) free(cmds); } -void imv_command_register(struct imv_commands *cmds, const char *command, void (*handler)()) +void imv_command_register(struct imv_commands *cmds, const char *command, void (*handler)(struct imv_list*, void*)) { struct command *cmd = malloc(sizeof(struct command)); cmd->command = strdup(command); diff --git a/src/commands.h b/src/commands.h index 2d106d9..a955fac 100644 --- a/src/commands.h +++ b/src/commands.h @@ -26,7 +26,7 @@ struct imv_commands { struct imv_commands *imv_commands_create(void); void imv_commands_free(struct imv_commands *cmds); -void imv_command_register(struct imv_commands *cmds, const char *command, void (*handler)()); +void imv_command_register(struct imv_commands *cmds, const char *command, void (*handler)(struct imv_list*, void*)); void imv_command_alias(struct imv_commands *cmds, const char *command, const char *alias); int imv_command_exec(struct imv_commands *cmds, const char *command, void *data); -- cgit v1.2.3