]> www.infradead.org Git - mtd-utils.git/commitdiff
mkfs.jffs2: fixed warnings
authorBrian Norris <norris@broadcom.com>
Thu, 8 Jul 2010 20:50:07 +0000 (13:50 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 18 Jul 2010 07:19:18 +0000 (10:19 +0300)
Changed "char*" to "const char*" in certain function argument lists
to prevent compiler warnings for passing a hard-coded string.

Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
mkfs.jffs2.c

index 2c78fd5170960bffa36a7a678629ef2699315e9e..4ba71fe634a9ccdb7e50257a3f97d372b137fd8b 100644 (file)
@@ -309,8 +309,8 @@ static struct filesystem_entry *find_filesystem_entry(
        return (NULL);
 }
 
-static struct filesystem_entry *add_host_filesystem_entry(
-               char *name, char *path, unsigned long uid, unsigned long gid,
+static struct filesystem_entry *add_host_filesystem_entry(const char *name,
+               const char *path, unsigned long uid, unsigned long gid,
                unsigned long mode, dev_t rdev, struct filesystem_entry *parent)
 {
        int status;
@@ -401,7 +401,8 @@ static struct filesystem_entry *add_host_filesystem_entry(
 }
 
 static struct filesystem_entry *recursive_add_host_directory(
-               struct filesystem_entry *parent, char *targetpath, char *hostpath)
+               struct filesystem_entry *parent, const char *targetpath,
+               const char *hostpath)
 {
        int i, n;
        struct stat sb;