From: Mike Frysinger Date: Wed, 20 Oct 2010 11:18:09 +0000 (-0400) Subject: ext2: constify file/dir names X-Git-Tag: v2011.03-rc1~55^2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c87f6457bb9cb465e9630b00b4c824847a62c6c5;p=u-boot ext2: constify file/dir names Signed-off-by: Mike Frysinger --- diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index a88cf87041..e119e1388f 100644 --- a/fs/ext2/ext2fs.c +++ b/fs/ext2/ext2fs.c @@ -749,7 +749,7 @@ int ext2fs_find_file } -int ext2fs_ls (char *dirname) { +int ext2fs_ls (const char *dirname) { ext2fs_node_t dirnode; int status; @@ -769,7 +769,7 @@ int ext2fs_ls (char *dirname) { } -int ext2fs_open (char *filename) { +int ext2fs_open (const char *filename) { ext2fs_node_t fdiro = NULL; int status; int len; diff --git a/include/ext2fs.h b/include/ext2fs.h index de935b093b..163a9bbc0e 100644 --- a/include/ext2fs.h +++ b/include/ext2fs.h @@ -74,8 +74,8 @@ typedef enum extern int ext2fs_set_blk_dev(block_dev_desc_t *rbdd, int part); -extern int ext2fs_ls (char *dirname); -extern int ext2fs_open (char *filename); +extern int ext2fs_ls (const char *dirname); +extern int ext2fs_open (const char *filename); extern int ext2fs_read (char *buf, unsigned len); extern int ext2fs_mount (unsigned part_length); extern int ext2fs_close(void);