diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-03 12:22:10 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-16 08:23:32 -0400 |
commit | 018f530323b2cc41be05be5b12375d3648f06554 (patch) | |
tree | b397b84a059e5b704c20c9097577ada6fc4ba296 /cmd/nvedit.c | |
parent | 382bee57f19b4454e2015bc19a010bc2d0ab9337 (diff) | |
download | u-boot-018f530323b2cc41be05be5b12375d3648f06554.tar.gz |
env: Rename common functions related to setenv()
We are now using an env_ prefix for environment functions. Rename these
commonly used functions, 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 'cmd/nvedit.c')
-rw-r--r-- | cmd/nvedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 1b1e9667b5..a649004850 100644 --- a/cmd/nvedit.c +++ b/cmd/nvedit.c @@ -304,7 +304,7 @@ int env_set(const char *varname, const char *varvalue) * @param value Value to set it to * @return 0 if ok, 1 on error */ -int setenv_ulong(const char *varname, ulong value) +int env_set_ulong(const char *varname, ulong value) { /* TODO: this should be unsigned */ char *str = simple_itoa(value); @@ -319,7 +319,7 @@ int setenv_ulong(const char *varname, ulong value) * @param value Value to set it to * @return 0 if ok, 1 on error */ -int setenv_hex(const char *varname, ulong value) +int env_set_hex(const char *varname, ulong value) { char str[17]; @@ -957,7 +957,7 @@ NXTARG: ; envp->flags = ACTIVE_FLAG; #endif } - setenv_hex("filesize", len + offsetof(env_t, data)); + env_set_hex("filesize", len + offsetof(env_t, data)); return 0; |