From: Ralph Wuerthner Date: Tue, 28 Jan 2020 13:39:51 +0000 (+0100) Subject: gpfswrap: Make pathname "const char *" in gpfswrap_putacl() X-Git-Tag: ldb-2.1.1~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4833f173359fb04fba42eb0c811b230238668f22;p=thirdparty%2Fsamba.git gpfswrap: Make pathname "const char *" in gpfswrap_putacl() 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 14ee0de91c4..4868d59830d 100644 --- a/lib/util/gpfswrap.c +++ b/lib/util/gpfswrap.c @@ -24,7 +24,7 @@ static int (*gpfs_set_share_fn)(int fd, unsigned int allow, unsigned int deny); static int (*gpfs_set_lease_fn)(int fd, unsigned int type); static int (*gpfs_getacl_fn)(const char *pathname, int flags, void *acl); -static int (*gpfs_putacl_fn)(char *pathname, int flags, void *acl); +static int (*gpfs_putacl_fn)(const char *pathname, int flags, void *acl); static int (*gpfs_get_realfilename_path_fn)(char *pathname, char *filenamep, int *len); static int (*gpfs_set_winattrs_path_fn)(char *pathname, int flags, @@ -114,7 +114,7 @@ int gpfswrap_getacl(const char *pathname, int flags, void *acl) return gpfs_getacl_fn(pathname, flags, acl); } -int gpfswrap_putacl(char *pathname, int flags, void *acl) +int gpfswrap_putacl(const char *pathname, int flags, void *acl) { if (gpfs_putacl_fn == NULL) { errno = ENOSYS; diff --git a/lib/util/gpfswrap.h b/lib/util/gpfswrap.h index 7dbdec9485a..a19d0c86e9d 100644 --- a/lib/util/gpfswrap.h +++ b/lib/util/gpfswrap.h @@ -30,7 +30,7 @@ int gpfswrap_init(void); int gpfswrap_set_share(int fd, unsigned int allow, unsigned int deny); int gpfswrap_set_lease(int fd, unsigned int type); int gpfswrap_getacl(const char *pathname, int flags, void *acl); -int gpfswrap_putacl(char *pathname, int flags, void *acl); +int gpfswrap_putacl(const char *pathname, int flags, void *acl); int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len); int gpfswrap_set_winattrs_path(char *pathname, int flags, struct gpfs_winattr *attrs);