Patchwork [U-Boot] ext2: constify file/dir names

login
register
mail settings
Submitter Mike Frysinger
Date Oct. 20, 2010, 11:18 a.m.
Message ID <1287573489-6816-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/71908/
State Accepted
Commit c87f6457bb9cb465e9630b00b4c824847a62c6c5
Delegated to: Wolfgang Denk
Headers show

Comments

Mike Frysinger - Oct. 20, 2010, 11:18 a.m.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 fs/ext2/ext2fs.c |    4 ++--
 include/ext2fs.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Wolfgang Denk - Nov. 28, 2010, 9:03 p.m.
Dear Mike Frysinger,

In message <1287573489-6816-1-git-send-email-vapier@gentoo.org> you wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  fs/ext2/ext2fs.c |    4 ++--
>  include/ext2fs.h |    4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)

Applied to "next" branch, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c
index a88cf87..e119e13 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 de935b0..163a9bb 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);