Skip to contentSkip to conversation

ext2: constify file/dir names

PATCH New Mike Frysinger 2 participants 2 messages Oct 20, 2010 – Nov 28, 2010 ext2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ext2: constify file/dir names

---
 fs/ext2/ext2fs.c |    4 ++--
 include/ext2fs.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
fs/ext2/ext2fs.c +2 -2
index a88cf87..e119e13 100644
@@ -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;
include/ext2fs.h +2 -2
index de935b0..163a9bb 100644
@@ -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);
Signature · 1 line
1.7.3.1
#1 lore raw

PATCH 1/1 ext2: constify file/dir names

Dear Mike Frysinger,

Quoted 5 lines · In message <[email protected]> you wrote:
---
 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

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"No one talks peace unless he's ready to back it up with war."
"He talks of peace if it is the only way to live."
	-- Colonel Green and Surak of Vulcan, "The Savage Curtain",
	   stardate 5906.5.