diff --git a/common/environment.c b/common/environment.c index 3f6f4b3..6f06bfc 100644 --- a/common/environment.c +++ b/common/environment.c @@ -162,7 +162,7 @@ * 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 @@ * 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; diff --git a/include/envfs.h b/include/envfs.h index e847e4c..f8b24ed 100644 --- a/include/envfs.h +++ b/include/envfs.h @@ -90,8 +90,8 @@ #endif #define ENV_FLAG_NO_OVERWRITE (1 << 0) -int envfs_load(char *filename, char *dirname, unsigned flags); -int envfs_save(char *filename, char *dirname); +int envfs_load(const char *filename, char *dirname, unsigned flags); +int envfs_save(const char *filename, char *dirname); /* defaults to /dev/env0 */ #ifdef CONFIG_ENV_HANDLING