diff options
author | wdenk <wdenk> | 2003-07-01 21:06:45 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-07-01 21:06:45 +0000 |
commit | 0d4983930a3559be92452761cfa268ee9d0f2773 (patch) | |
tree | cfb77c1274a959cde007a7ac4e18b4b0d67bd253 /common/cmd_nvedit.c | |
parent | b37c7e5e5c3c80c68f49a31c4308b159bb5bda1a (diff) | |
download | u-boot-0d4983930a3559be92452761cfa268ee9d0f2773.zip u-boot-0d4983930a3559be92452761cfa268ee9d0f2773.tar.gz u-boot-0d4983930a3559be92452761cfa268ee9d0f2773.tar.bz2 |
Patch by Kenneth Johansson, 30 Jun 2003:
get rid of MK_CMD_ENTRY macro; update doc/README.command
Diffstat (limited to 'common/cmd_nvedit.c')
-rw-r--r-- | common/cmd_nvedit.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index 9cf8b90..bfc69bd 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -561,16 +561,16 @@ envmatch (uchar *s1, int i2) /**************************************************/ -cmd_tbl_t U_BOOT_CMD(PRINTENV) = MK_CMD_ENTRY( - "printenv", CFG_MAXARGS, 1, do_printenv, +U_BOOT_CMD( + printenv, CFG_MAXARGS, 1, do_printenv, "printenv- print environment variables\n", "\n - print values of all environment variables\n" "printenv name ...\n" " - print value of environment variable 'name'\n" ); -cmd_tbl_t U_BOOT_CMD(SETENV) = MK_CMD_ENTRY( - "setenv", CFG_MAXARGS, 0, do_setenv, +U_BOOT_CMD( + setenv, CFG_MAXARGS, 0, do_setenv, "setenv - set environment variables\n", "name value ...\n" " - set environment variable 'name' to 'value ...'\n" @@ -580,8 +580,8 @@ cmd_tbl_t U_BOOT_CMD(SETENV) = MK_CMD_ENTRY( #if ((CONFIG_COMMANDS & (CFG_CMD_ENV|CFG_CMD_FLASH)) == (CFG_CMD_ENV|CFG_CMD_FLASH)) -cmd_tbl_t U_BOOT_CMD(SAVEENV) = MK_CMD_ENTRY( - "saveenv", 1, 0, do_saveenv, +U_BOOT_CMD( + saveenv, 1, 0, do_saveenv, "saveenv - save environment variables to persistent storage\n", NULL ); @@ -590,8 +590,8 @@ cmd_tbl_t U_BOOT_CMD(SAVEENV) = MK_CMD_ENTRY( #if (CONFIG_COMMANDS & CFG_CMD_ASKENV) -cmd_tbl_t U_BOOT_CMD(ASKENV) = MK_CMD_ENTRY( - "askenv", CFG_MAXARGS, 1, do_askenv, +U_BOOT_CMD( + askenv, CFG_MAXARGS, 1, do_askenv, "askenv - get environment variables from stdin\n", "name [message] [size]\n" " - get environment variable 'name' from stdin (max 'size' chars)\n" @@ -607,8 +607,8 @@ cmd_tbl_t U_BOOT_CMD(ASKENV) = MK_CMD_ENTRY( #if (CONFIG_COMMANDS & CFG_CMD_RUN) int do_run (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); -cmd_tbl_t U_BOOT_CMD(RUN) = MK_CMD_ENTRY( - "run", CFG_MAXARGS, 1, do_run, +U_BOOT_CMD( + run, CFG_MAXARGS, 1, do_run, "run - run commands in an environment variable\n", "var [...]\n" " - run the commands in the environment variable(s) 'var'\n" |