diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-27 11:04:13 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-01-27 11:08:44 +0100 |
commit | 5767987b34bee2ef8d04c31a054d0a4861335af3 (patch) | |
tree | ebff2114c086126504d95f52fe95cd2d270b206f /common/environment.c | |
parent | c1c2e56fb38c084e9e17d7bdae69eb3167f9a303 (diff) | |
download | barebox-5767987b34bee2ef8d04c31a054d0a4861335af3.tar.gz barebox-5767987b34bee2ef8d04c31a054d0a4861335af3.tar.xz |
env: make path arguments to envfs_load/save const
These functions have no business changing the path argument, so make the
argument const.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/environment.c')
-rw-r--r-- | common/environment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/environment.c b/common/environment.c index 3f6f4b3a36..6f06bfce28 100644 --- a/common/environment.c +++ b/common/environment.c @@ -162,7 +162,7 @@ out: * Note: This function will also be used on the host! See note in the header * of this file. */ -int envfs_save(char *filename, char *dirname) +int envfs_save(const char *filename, char *dirname) { struct envfs_super *super; int envfd, size, ret; @@ -227,7 +227,7 @@ EXPORT_SYMBOL(envfs_save); * Note: This function will also be used on the host! See note in the header * of this file. */ -int envfs_load(char *filename, char *dir, unsigned flags) +int envfs_load(const char *filename, char *dir, unsigned flags) { struct envfs_super super; void *buf = NULL, *buf_free = NULL; |