summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:41 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commitf1f0ae6a9ce7f4bd148daac233a70a065623d3dd (patch)
treefb3943ddae06d279a8493f596aba1dc5cbc39f03 /cmd
parentaf95f2061aee57ce76e1d62a6962724cc5a849a8 (diff)
downloadu-boot-f1f0ae6a9ce7f4bd148daac233a70a065623d3dd.tar.gz
u-boot-f1f0ae6a9ce7f4bd148daac233a70a065623d3dd.tar.bz2
u-boot-f1f0ae6a9ce7f4bd148daac233a70a065623d3dd.zip
env: Move get_env_id() to env.h
Move this function over to the new header file. Also rename it to have an env_ prefix like the other functions. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/nvedit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index 46b1e60f0a..4f3edab8b9 100644
--- a/cmd/nvedit.c
+++ b/cmd/nvedit.c
@@ -27,6 +27,7 @@
#include <cli.h>
#include <command.h>
#include <console.h>
+#include <env.h>
#include <environment.h>
#include <search.h>
#include <errno.h>
@@ -69,14 +70,14 @@ NAND|NVRAM|ONENAND|SATA|SPI_FLASH|REMOTE|UBI} or CONFIG_ENV_IS_NOWHERE
/*
* This variable is incremented on each do_env_set(), so it can
- * be used via get_env_id() as an indication, if the environment
+ * be used via env_get_id() as an indication, if the environment
* has changed or not. So it is possible to reread an environment
* variable only if the environment was changed ... done so for
* example in NetInitLoop()
*/
static int env_id = 1;
-int get_env_id(void)
+int env_get_id(void)
{
return env_id;
}