summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@semihalf.com>2008-01-09 18:05:27 +0100
committerRafal Jaworowski <raj@semihalf.com>2008-01-09 18:05:27 +0100
commit26a41790f8eba19ad450e18ae91351daf485b3e2 (patch)
tree54995954fbdd7cb9c19f9f0eb491f4e3dbac1998 /common
parent6007f3251c0967adc13f2ed8be1b924ddc30124d (diff)
downloadtalos-obmc-uboot-26a41790f8eba19ad450e18ae91351daf485b3e2.tar.gz
talos-obmc-uboot-26a41790f8eba19ad450e18ae91351daf485b3e2.zip
Globalize envmatch()
The newly introduced API (routines related to env vars) will need to call it. Signed-off-by: Rafal Zabdyr <armo@semihalf.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nvedit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 6770408810..dd263b6666 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -81,8 +81,6 @@ extern void env_crc_update (void);
/************************************************************************
************************************************************************/
-static int envmatch (uchar *, int);
-
/*
* Table with supported baudrates (defined in config_xyz.h)
*/
@@ -576,8 +574,7 @@ int do_saveenv (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
* If the names match, return the index for the value2, else NULL.
*/
-static int
-envmatch (uchar *s1, int i2)
+int envmatch (uchar *s1, int i2)
{
while (*s1 == env_get_char(i2++))
OpenPOWER on IntegriCloud