]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gpfswrap: Make pathname "const char *" in gpfswrap_set_winattrs_path()
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 28 Jan 2020 13:44:24 +0000 (14:44 +0100)
committerChristof Schmitt <cs@samba.org>
Mon, 3 Feb 2020 20:27:37 +0000 (20:27 +0000)
Update wrapper function to match the definition in gpfs.h.

Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/util/gpfswrap.c
lib/util/gpfswrap.h

index 7ca1ca7b13b11cfccb0275e78922df0e010d4e05..ea1ad0683c2dec90cc0fe926043a20048d28487e 100644 (file)
@@ -28,7 +28,8 @@ static int (*gpfs_putacl_fn)(const char *pathname, int flags, void *acl);
 static int (*gpfs_get_realfilename_path_fn)(const char *pathname,
                                            char *filenamep,
                                            int *len);
-static int (*gpfs_set_winattrs_path_fn)(char *pathname, int flags,
+static int (*gpfs_set_winattrs_path_fn)(const char *pathname,
+                                       int flags,
                                        struct gpfs_winattr *attrs);
 static int (*gpfs_set_winattrs_fn)(int fd, int flags,
                                   struct gpfs_winattr *attrs);
@@ -137,7 +138,8 @@ int gpfswrap_get_realfilename_path(const char *pathname,
        return gpfs_get_realfilename_path_fn(pathname, filenamep, len);
 }
 
-int gpfswrap_set_winattrs_path(char *pathname, int flags,
+int gpfswrap_set_winattrs_path(const char *pathname,
+                              int flags,
                               struct gpfs_winattr *attrs)
 {
        if (gpfs_set_winattrs_path_fn == NULL) {
index b093b8153d99c4fa1d20fb0e273b3bc47640cf0d..857d872508e73a192a2cc3194c2bf16b838d4707 100644 (file)
@@ -34,7 +34,8 @@ int gpfswrap_putacl(const char *pathname, int flags, void *acl);
 int gpfswrap_get_realfilename_path(const char *pathname,
                                   char *filenamep,
                                   int *len);
-int gpfswrap_set_winattrs_path(char *pathname, int flags,
+int gpfswrap_set_winattrs_path(const char *pathname,
+                              int flags,
                               struct gpfs_winattr *attrs);
 int gpfswrap_set_winattrs(int fd, int flags, struct gpfs_winattr *attrs);
 int gpfswrap_get_winattrs_path(char *pathname, struct gpfs_winattr *attrs);