environment: constify arguments
The directory arguments to envfs_load and envfs_save can be const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
0de5aae341
commit
c2428b2287
|
@ -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;
|
||||
|
|
|
@ -90,8 +90,8 @@ struct envfs_super {
|
|||
#endif
|
||||
|
||||
#define ENV_FLAG_NO_OVERWRITE (1 << 0)
|
||||
int envfs_load(const char *filename, char *dirname, unsigned flags);
|
||||
int envfs_save(const char *filename, char *dirname);
|
||||
int envfs_load(const char *filename, const char *dirname, unsigned flags);
|
||||
int envfs_save(const char *filename, const char *dirname);
|
||||
|
||||
/* defaults to /dev/env0 */
|
||||
#ifdef CONFIG_ENV_HANDLING
|
||||
|
|
Loading…
Reference in New Issue