Skip to content

Commit

Permalink
Globalize envmatch()
Browse files Browse the repository at this point in the history
The newly introduced API (routines related to env vars) will need to call
it.

Signed-off-by: Rafal Zabdyr <[email protected]>
  • Loading branch information
semihalf-jaworowski-rafal committed Jan 9, 2008
1 parent 6007f32 commit 26a4179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions common/cmd_nvedit.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ extern void env_crc_update (void);
/************************************************************************
************************************************************************/

static int envmatch (uchar *, int);

/*
* Table with supported baudrates (defined in config_xyz.h)
*/
Expand Down Expand Up @@ -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++))
Expand Down
1 change: 1 addition & 0 deletions include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 26a4179

Please sign in to comment.