gpfswrap: Make pathname "const char *" in gpfswrap_quotactl()
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 28 Jan 2020 13:50:19 +0000 (14:50 +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 b4f7d7520cfd7a8ad25a6e0765b45cf49deb195c..14118cbf53c04b7b0d7d828c99c8e60f9853bdcf 100644 (file)
@@ -40,7 +40,10 @@ static int (*gpfs_ftruncate_fn)(int fd, gpfs_off64_t length);
 static int (*gpfs_lib_init_fn)(int flags);
 static int (*gpfs_set_times_path_fn)(char *pathname, int flags,
                                     gpfs_timestruc_t times[4]);
-static int (*gpfs_quotactl_fn)(char *pathname, int cmd, int id, void *bufp);
+static int (*gpfs_quotactl_fn)(const char *pathname,
+                              int cmd,
+                              int id,
+                              void *bufp);
 static int (*gpfs_init_trace_fn)(void);
 static int (*gpfs_query_trace_fn)(void);
 static void (*gpfs_add_trace_fn)(int level, const char *msg);
@@ -212,7 +215,7 @@ int gpfswrap_set_times_path(char *pathname, int flags,
        return gpfs_set_times_path_fn(pathname, flags, times);
 }
 
-int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp)
+int gpfswrap_quotactl(const char *pathname, int cmd, int id, void *bufp)
 {
        if (gpfs_quotactl_fn == NULL) {
                errno = ENOSYS;
index 2c518b939f81f590a4b0f15c45c44c48bb75714e..f62d690ac06c7285bf535fed68828147beb6dc28 100644 (file)
@@ -45,7 +45,7 @@ int gpfswrap_ftruncate(int fd, gpfs_off64_t length);
 int gpfswrap_lib_init(int flags);
 int gpfswrap_set_times_path(char *pathname, int flags,
                            gpfs_timestruc_t times[4]);
-int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp);
+int gpfswrap_quotactl(const char *pathname, int cmd, int id, void *bufp);
 int gpfswrap_init_trace(void);
 int gpfswrap_query_trace(void);
 void gpfswrap_add_trace(int level, const char *msg);