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 /net | |
parent | 35affd7a2ff9a77b9946bf93b616228fcf218d60 (diff) | |
download | u-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.zip u-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.tar.gz u-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.tar.bz2 |
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 'net')
-rw-r--r-- | net/link_local.c | 2 | ||||
-rw-r--r-- | net/net.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/link_local.c b/net/link_local.c index dfd240d..31cdef4 100644 --- a/net/link_local.c +++ b/net/link_local.c @@ -104,7 +104,7 @@ static void configure_wait(void) void link_local_start(void) { - ip = getenv_ip("llipaddr"); + ip = env_get_ip("llipaddr"); if (ip.s_addr != 0 && (ntohl(ip.s_addr) & IN_CLASSB_NET) != LINKLOCAL_ADDR) { puts("invalid link address"); @@ -1536,7 +1536,7 @@ ushort string_to_vlan(const char *s) return htons(id); } -ushort getenv_vlan(char *var) +ushort env_get_vlan(char *var) { return string_to_vlan(env_get(var)); } |