summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-20 14:21:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-20 14:43:49 +0100
commitc2428b2287a8377fd277c429be993a4b9babdf7e (patch)
tree184b019fa1fbbe58521995307975e913c185e244 /common
parent0de5aae341bf0b46b859417c946793c72be14aae (diff)
downloadbarebox-c2428b2287a8377fd277c429be993a4b9babdf7e.tar.gz
barebox-c2428b2287a8377fd277c429be993a4b9babdf7e.tar.xz
environment: constify arguments
The directory arguments to envfs_load and envfs_save can be const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/environment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/environment.c b/common/environment.c
index 6f06bfce28..695baf7456 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(const char *filename, char *dirname)
+int envfs_save(const char *filename, const 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(const char *filename, char *dir, unsigned flags)
+int envfs_load(const char *filename, const char *dir, unsigned flags)
{
struct envfs_super super;
void *buf = NULL, *buf_free = NULL;