diff options
Diffstat (limited to 'src/hci/shell.c')
| -rw-r--r-- | src/hci/shell.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/hci/shell.c b/src/hci/shell.c index 18b1068e9..74787e3c1 100644 --- a/src/hci/shell.c +++ b/src/hci/shell.c @@ -29,11 +29,6 @@ * */ -static struct command commands[0] - __table_start ( struct command, commands ); -static struct command commands_end[0] - __table_end ( struct command, commands ); - /** The shell prompt string */ static const char shell_prompt[] = "gPXE> "; @@ -65,7 +60,7 @@ static int help_exec ( int argc __unused, char **argv __unused ) { unsigned int hpos = 0; printf ( "\nAvailable commands:\n\n" ); - for ( command = commands ; command < commands_end ; command++ ) { + for_each_table_entry ( command, COMMANDS ) { hpos += printf ( " %s", command->name ); if ( hpos > ( 16 * 4 ) ) { printf ( "\n" ); |
