From 382bee57f19b4454e2015bc19a010bc2d0ab9337 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:09 -0600 Subject: env: Rename setenv() to env_set() We are now using an env_ prefix for environment functions. Rename setenv() for consistency. Also add function comments in common.h. Suggested-by: Wolfgang Denk Signed-off-by: Simon Glass --- net/eth_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/eth_common.c') diff --git a/net/eth_common.c b/net/eth_common.c index 58fa295771..ef97da7267 100644 --- a/net/eth_common.c +++ b/net/eth_common.c @@ -39,7 +39,7 @@ int eth_setenv_enetaddr(const char *name, const uchar *enetaddr) sprintf(buf, "%pM", enetaddr); - return setenv(name, buf); + return env_set(name, buf); } int eth_getenv_enetaddr_by_index(const char *base_name, int index, @@ -97,14 +97,14 @@ void eth_current_changed(void) /* update current ethernet name */ if (eth_get_dev()) { if (act == NULL || strcmp(act, eth_get_name()) != 0) - setenv("ethact", eth_get_name()); + env_set("ethact", eth_get_name()); } /* * remove the variable completely if there is no active * interface */ else if (act != NULL) - setenv("ethact", NULL); + env_set("ethact", NULL); } void eth_try_another(int first_restart) -- cgit v1.2.1