env: Move set_default_vars to env.h

Move this function to the new header file and rename it so it has an env_
prefix.

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2019-08-01 09:46:56 -06:00
committed by Tom Rini
parent 03ed91887f
commit 0b9d8a0556
4 changed files with 13 additions and 5 deletions

2
env/common.c vendored
View File

@@ -92,7 +92,7 @@ void set_default_env(const char *s, int flags)
/* [re]set individual variables to their value in the default environment */
int set_default_vars(int nvars, char * const vars[], int flags)
int env_set_default_vars(int nvars, char * const vars[], int flags)
{
/*
* Special use-case: import from default environment