From: Ralph Wuerthner Date: Tue, 28 Jan 2020 13:44:24 +0000 (+0100) Subject: gpfswrap: Make pathname "const char *" in gpfswrap_set_winattrs_path() X-Git-Tag: ldb-2.1.1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27a725f4553e18496e0dc7605014470315cb3738;p=thirdparty%2Fsamba.git gpfswrap: Make pathname "const char *" in gpfswrap_set_winattrs_path() Update wrapper function to match the definition in gpfs.h. Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer --- diff --git a/lib/util/gpfswrap.c b/lib/util/gpfswrap.c index 7ca1ca7b13b..ea1ad0683c2 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -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) { diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index b093b8153d9..857d872508e 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -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);