mirror of
https://github.com/libfuse/libfuse.git
synced 2026-07-07 14:47:41 +08:00
example: fix cppcheck complaints about constifying pointers
Fix various cppcheck complaints about pointers that could be const pointers instead. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
This commit is contained in:
committed by
Bernd Schubert
parent
1300bca9b1
commit
33996e0511
@@ -756,7 +756,7 @@ int single_file_opt_proc(void *data, const char *arg, int key,
|
||||
return 1;
|
||||
}
|
||||
|
||||
int single_file_service_open(struct fuse_service *sf, const char *path)
|
||||
int single_file_service_open(const struct fuse_service *sf, const char *path)
|
||||
{
|
||||
int open_flags = single_file.ro ? O_RDONLY : O_RDWR;
|
||||
int fd;
|
||||
|
||||
@@ -114,7 +114,7 @@ int single_file_opt_proc(void *data, const char *arg, int key,
|
||||
unsigned long long parse_num_blocks(const char *arg, int log_block_size);
|
||||
|
||||
struct fuse_service;
|
||||
int single_file_service_open(struct fuse_service *sf, const char *path);
|
||||
int single_file_service_open(const struct fuse_service *sf, const char *path);
|
||||
|
||||
void single_file_check_read(off_t pos, size_t *count);
|
||||
int single_file_check_write(off_t pos, size_t *count);
|
||||
|
||||
Reference in New Issue
Block a user