Removed function pointers
This commit is contained in:
@@ -395,7 +395,7 @@ static struct cmd_t command_defs[] =
|
||||
NULL } } },
|
||||
|
||||
{ "/occupants",
|
||||
cmd_occupants, parse_args, 1, 2, &cons_occupants_setting,
|
||||
cmd_occupants, parse_args, 1, 2, cons_occupants_setting,
|
||||
{ "/occupants show|hide|default|size [show|hide] [percent]", "Show or hide room occupants.",
|
||||
{ "/occupants show|hide|default|size [show|hide] [percent]",
|
||||
"-------------------------------------------------------",
|
||||
|
||||
@@ -58,7 +58,7 @@ typedef struct cmd_t {
|
||||
gchar** (*parser)(const char * const inp, int min, int max, gboolean *result);
|
||||
int min_args;
|
||||
int max_args;
|
||||
void (**setting_func)(void);
|
||||
void (*setting_func)(void);
|
||||
CommandHelp help;
|
||||
} Command;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user