]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Globalize envmatch()
authorRafal Jaworowski <raj@semihalf.com>
Wed, 9 Jan 2008 17:05:27 +0000 (18:05 +0100)
committerRafal Jaworowski <raj@semihalf.com>
Wed, 9 Jan 2008 17:05:27 +0000 (18:05 +0100)
The newly introduced API (routines related to env vars) will need to call
it.

Signed-off-by: Rafal Zabdyr <armo@semihalf.com>
common/cmd_nvedit.c
include/common.h

index 67704088104696424fffc97c20d16b6e238729a8..dd263b6666318b60db83de3de767e0ec8f0501fa 100644 (file)
@@ -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++))
index 493417f8776b3350a585479e98105e8cf1788634..da2f01b464deff91c8ca86609cbc574d5437e56e 100644 (file)
@@ -227,6 +227,7 @@ extern ulong load_addr;             /* Default Load Address */
 /* common/cmd_nvedit.c */
 int    env_init     (void);
 void   env_relocate (void);
+int    envmatch     (uchar *, int);
 char   *getenv      (char *);
 int    getenv_r     (char *name, char *buf, unsigned len);
 int    saveenv      (void);