* [PATCH] libfuse: fix cppcheck warnings in the new mount service code
@ 2026-05-19 22:42 Darrick J. Wong
0 siblings, 0 replies; only message in thread
From: Darrick J. Wong @ 2026-05-19 22:42 UTC (permalink / raw)
To: Bernd Schubert; +Cc: fuse-devel, linux-fsdevel
From: Darrick J. Wong <djwong@kernel.org>
Fix some cppcheck warnings. No functional changes.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
Hopefully this clears up the last of the static checker errors with the
fuse service container branch?
---
util/mount_service.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/util/mount_service.c b/util/mount_service.c
index afb345e8b91dfc..8b0eecf5b00ab2 100644
--- a/util/mount_service.c
+++ b/util/mount_service.c
@@ -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)) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-19 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19 22:42 [PATCH] libfuse: fix cppcheck warnings in the new mount service code Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox