diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:15 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-16 08:31:11 -0400 |
commit | 723806cc5bea9f8b37323dfd7568603f99af6a06 (patch) | |
tree | 886eeb28ac54536f60ad0979f9a4404ff4b29bda /env | |
parent | 35affd7a2ff9a77b9946bf93b616228fcf218d60 (diff) | |
download | u-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.tar.gz |
env: Rename some other getenv()-related functions
We are now using an env_ prefix for environment functions. Rename these
other functions as well, for consistency:
getenv_vlan()
getenv_bootm_size()
getenv_bootm_low()
getenv_bootm_mapsize()
env_get_default()
Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'env')
-rw-r--r-- | env/common.c | 2 | ||||
-rw-r--r-- | env/flags.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/env/common.c b/env/common.c index 71613aa9de..688d5ab4c8 100644 --- a/env/common.c +++ b/env/common.c @@ -44,7 +44,7 @@ int env_get_yesno(const char *var) /* * Look up the variable from the default environment */ -char *getenv_default(const char *name) +char *env_get_default(const char *name) { char *ret_val; unsigned long really_valid = gd->env_valid; diff --git a/env/flags.c b/env/flags.c index 85a344fa51..4b0ddb6bb8 100644 --- a/env/flags.c +++ b/env/flags.c @@ -541,7 +541,7 @@ int env_flags_validate(const ENTRY *item, const char *newval, enum env_op op, return 1; } else if (item->flags & ENV_FLAGS_VARACCESS_PREVENT_NONDEF_OVERWR) { - const char *defval = getenv_default(name); + const char *defval = env_get_default(name); if (defval == NULL) defval = ""; |