libfuse: fix cppcheck warnings in the new mount service code

Fix some cppcheck warnings.  No functional changes.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
This commit is contained in:
Darrick J. Wong
2026-05-19 14:10:35 -07:00
parent c708a0ce1c
commit 93892e469d
+3 -2
View File
@@ -882,7 +882,7 @@ static int mount_service_handle_source_cmd(struct mount_service *mo,
const struct fuse_service_packet *p,
size_t psz)
{
struct fuse_service_string_command *oc =
const struct fuse_service_string_command *oc =
container_of(p, struct fuse_service_string_command, p);
char *source;
@@ -935,7 +935,8 @@ static int mount_service_handle_mntopts_cmd(struct mount_service *mo,
struct fuse_service_string_command *oc =
container_of(p, struct fuse_service_string_command, p);
char *tokstr = oc->value;
char *tok, *savetok;
const char *tok;
char *savetok;
char *mntopts;
if (psz < sizeof_fuse_service_string_command(1)) {