summaryrefslogtreecommitdiff
path: root/common/cmd_fs.c
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-06-23 00:22:08 +0200
committerTom Rini <trini@ti.com>2014-07-18 17:53:23 -0400
commit0e350f81e1ca7d103fd9685725f9c4b0d9e80632 (patch)
tree05af9f8bb5f3a0c4cc03c7624880d6ee7927b93c /common/cmd_fs.c
parente259d6a320d0280f02966b8bc35316fb136c5e24 (diff)
downloadu-boot-imx-0e350f81e1ca7d103fd9685725f9c4b0d9e80632.zip
u-boot-imx-0e350f81e1ca7d103fd9685725f9c4b0d9e80632.tar.gz
u-boot-imx-0e350f81e1ca7d103fd9685725f9c4b0d9e80632.tar.bz2
common: commands: make commands static
Since most commands are not public, make them static. This prevents warnings that no common prototype is available. Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'common/cmd_fs.c')
-rw-r--r--common/cmd_fs.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/cmd_fs.c b/common/cmd_fs.c
index 91a205a..78590d2 100644
--- a/common/cmd_fs.c
+++ b/common/cmd_fs.c
@@ -20,7 +20,8 @@
#include <command.h>
#include <fs.h>
-int do_load_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_load_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
+ char * const argv[])
{
return do_load(cmdtp, flag, argc, argv, FS_TYPE_ANY);
}
@@ -35,9 +36,10 @@ U_BOOT_CMD(
" If 'bytes' is 0 or omitted, the file is read until the end.\n"
" 'pos' gives the file byte position to start reading from.\n"
" If 'pos' is 0 or omitted, the file is read from the start."
-);
+)
-int do_ls_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+static int do_ls_wrapper(cmd_tbl_t *cmdtp, int flag, int argc,
+ char * const argv[])
{
return do_ls(cmdtp, flag, argc, argv, FS_TYPE_ANY);
}
@@ -48,4 +50,4 @@ U_BOOT_CMD(
"<interface> [<dev[:part]> [directory]]\n"
" - List files in directory 'directory' of partition 'part' on\n"
" device type 'interface' instance 'dev'."
-);
+)