mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
gpfswrap: Make pathname "const char *" in gpfswrap_quotactl()
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>
This commit is contained in:
parent
5d4ec2d722
commit
bb0b31715f
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user