Commit 26a41790 authored by Rafal Jaworowski's avatar Rafal Jaworowski

Globalize envmatch()

The newly introduced API (routines related to env vars) will need to call
it.
Signed-off-by: default avatarRafal Zabdyr <armo@semihalf.com>
parent 6007f325
......@@ -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++))
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment