barebox/commands/magicvar.c
Sascha Hauer 33d1cc4bf2 commands: remove struct command pointer from commands
This is unused in all commands and thus can be removed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 20:28:07 +01:00

21 lines
396 B
C

#include <common.h>
#include <command.h>
#include <magicvar.h>
static int do_magicvar(int argc, char *argv[])
{
struct magicvar *m;
for (m = &__barebox_magicvar_start;
m != &__barebox_magicvar_end;
m++)
printf("%-32s %s\n", m->name, m->description);
return 0;
}
BAREBOX_CMD_START(magicvar)
.cmd = do_magicvar,
.usage = "List information about magic variables",
BAREBOX_CMD_END