From 0b9d8a0556e577190876ae756cf1de97104c9b41 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 1 Aug 2019 09:46:56 -0600 Subject: 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 Signed-off-by: Simon Glass --- include/env.h | 11 +++++++++++ include/environment.h | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/env.h b/include/env.h index 8082f7a0eb2..fc3519f8c58 100644 --- a/include/env.h +++ b/include/env.h @@ -187,4 +187,15 @@ int eth_env_set_enetaddr(const char *name, const uint8_t *enetaddr); */ void env_fix_drivers(void); +/** + * env_set_default_vars() - reset variables to their default value + * + * This resets individual variables to their value in the default environment + * + * @nvars: Number of variables to set/reset + * @vars: List of variables to set/reset + * @flags: Flags controlling matching (H_... - see search.h) + */ +int env_set_default_vars(int nvars, char *const vars[], int flags); + #endif diff --git a/include/environment.h b/include/environment.h index 7be1ef98ad6..97d48865994 100644 --- a/include/environment.h +++ b/include/environment.h @@ -274,9 +274,6 @@ char *env_get_default(const char *name); /* [re]set to the default environment */ 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); - /* Import from binary representation into hash table */ int env_import(const char *buf, int check); -- cgit v1.2.3