From 27a725f4553e18496e0dc7605014470315cb3738 Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Tue, 28 Jan 2020 14:44:24 +0100 Subject: [PATCH] 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 --- lib/util/gpfswrap.c | 6 ++++-- lib/util/gpfswrap.h | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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); -- 2.47.2