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:
Darrick J. Wong
2026-05-04 11:12:17 -07:00
committed by Bernd Schubert
parent 1300bca9b1
commit 33996e0511
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);