diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:13 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-16 08:30:32 -0400 |
commit | bfebc8c965e41d62dc6355d09bdd63ca57011b99 (patch) | |
tree | 2739bc0c03f554119f9feaaea578a11f0d08aa61 /net | |
parent | 00caae6d47645e68d6e5277aceb69592b49381a6 (diff) | |
download | u-boot-bfebc8c965e41d62dc6355d09bdd63ca57011b99.tar.gz |
env: Rename getenv_hex(), getenv_yesno(), getenv_ulong()
We are now using an env_ prefix for environment functions. Rename these
for consistency. Also add function comments in common.h.
Suggested-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bootp.c | 2 | ||||
-rw-r--r-- | net/net.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/bootp.c b/net/bootp.c index 6c869ef856..73370a13fe 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -504,7 +504,7 @@ static int dhcp_extended(u8 *e, int message_type, struct in_addr server_ip, #endif if (env_get("bootp_arch")) - clientarch = getenv_ulong("bootp_arch", 16, clientarch); + clientarch = env_get_ulong("bootp_arch", 16, clientarch); if (clientarch > 0) { *e++ = 93; /* Client System Architecture */ @@ -329,7 +329,7 @@ void net_auto_load(void) return; } #endif - if (getenv_yesno("autoload") == 0) { + if (env_get_yesno("autoload") == 0) { /* * Just use BOOTP/RARP to configure system; * Do not use TFTP to load the bootfile. |