summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helper/command.c3
-rw-r--r--src/helper/command.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index 41af0356..7edd585f 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -869,7 +869,8 @@ void process_jim_events(void)
#endif
}
-void register_jim(struct command_context *cmd_ctx, const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj *const *argv), const char *help)
+void register_jim(struct command_context *cmd_ctx, const char *name,
+ Jim_CmdProc cmd, const char *help)
{
Jim_CreateCommand(interp, name, cmd, NULL, NULL);
diff --git a/src/helper/command.h b/src/helper/command.h
index 94d98165..79e57f5a 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -190,7 +190,8 @@ extern int fast_and_dangerous;
extern Jim_Interp *interp;
-void register_jim(struct command_context *context, const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj *const *argv), const char *help);
+void register_jim(struct command_context *context, const char *name,
+ Jim_CmdProc cmd, const char *help);
long jim_global_long(const char *variable);