Refactored setting boolean preferences

This commit is contained in:
James Booth
2012-08-23 00:30:11 +01:00
parent 0f7f0a259d
commit b3f6023278
5 changed files with 72 additions and 94 deletions

View File

@@ -462,7 +462,7 @@ _cons_show_basic_help(void)
{
cons_show("");
GSList *basic_helpers = cmd_get_help_list_basic();
GSList *basic_helpers = cmd_get_basic_help();
while (basic_helpers != NULL) {
struct cmd_help_t *help = (struct cmd_help_t *)basic_helpers->data;
char line[25 + 2 + strlen(help->short_help)];
@@ -484,7 +484,7 @@ cons_help(void)
cons_show("Settings:");
cons_show("");
GSList *settings_helpers = cmd_get_help_list_settings();
GSList *settings_helpers = cmd_get_settings_help();
while (settings_helpers != NULL) {
struct cmd_help_t *help = (struct cmd_help_t *)settings_helpers->data;
char line[25 + 2 + strlen(help->short_help)];
@@ -497,7 +497,7 @@ cons_help(void)
cons_show("Status changes:");
cons_show("");
GSList *status_helpers = cmd_get_help_list_status();
GSList *status_helpers = cmd_get_status_help();
while (status_helpers != NULL) {
struct cmd_help_t *help = (struct cmd_help_t *)status_helpers->data;
char line[25 + 2 + strlen(help->short_help)];