summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-08-03 12:22:15 -0600
committerTom Rini <trini@konsulko.com>2017-08-16 08:31:11 -0400
commit723806cc5bea9f8b37323dfd7568603f99af6a06 (patch)
tree886eeb28ac54536f60ad0979f9a4404ff4b29bda /drivers/net
parent35affd7a2ff9a77b9946bf93b616228fcf218d60 (diff)
downloadu-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.tar.gz
u-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.tar.bz2
u-boot-723806cc5bea9f8b37323dfd7568603f99af6a06.zip
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 'drivers/net')
-rw-r--r--drivers/net/netconsole.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
index 2210c57a64..e9dbedf326 100644
--- a/drivers/net/netconsole.c
+++ b/drivers/net/netconsole.c
@@ -62,8 +62,8 @@ static int is_broadcast(struct in_addr ip)
/* update only when the environment has changed */
if (env_changed_id != env_id) {
- netmask = getenv_ip("netmask");
- our_ip = getenv_ip("ipaddr");
+ netmask = env_get_ip("netmask");
+ our_ip = env_get_ip("ipaddr");
env_changed_id = env_id;
}
@@ -83,7 +83,7 @@ static int refresh_settings_from_env(void)
/* update only when the environment has changed */
if (env_changed_id != env_id) {
if (env_get("ncip")) {
- nc_ip = getenv_ip("ncip");
+ nc_ip = env_get_ip("ncip");
if (!nc_ip.s_addr)
return -1; /* ncip is 0.0.0.0 */
p = strchr(env_get("ncip"), ':');