summaryrefslogtreecommitdiffstats
path: root/commands/saveenv.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-01-23 13:58:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-27 09:27:02 +0100
commit25cee7ec176693c40d80c1614e1244624e803a85 (patch)
treef3a4c680270487d3d21b68aa30cca2e0a0c17f89 /commands/saveenv.c
parentdac65f99e8bf1fbe2e15fa96ef901623bb49dc89 (diff)
downloadbarebox-25cee7ec176693c40d80c1614e1244624e803a85.tar.gz
environment: Use accessor functions for default environment path
default_environment_path only exists when CONFIG_ENV_HANDLING is enabled. Boards would have to #ifdef this if they wanted to use default_environment_path. Use accessor functions instead which can be ifdeffed on a single place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/saveenv.c')
-rw-r--r--commands/saveenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/saveenv.c b/commands/saveenv.c
index 7f371a8..8ead98d 100644
--- a/commands/saveenv.c
+++ b/commands/saveenv.c
@@ -38,7 +38,7 @@ static int do_saveenv(int argc, char *argv[])
else
dirname = argv[2];
if (argc < 2)
- filename = default_environment_path;
+ filename = default_environment_path_get();
else
filename = argv[1];