summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorWeijie Gao <[email protected]>2026-05-20 16:27:31 +0800
committerHeiko Schocher <[email protected]>2026-07-08 11:30:14 +0200
commitd9a9d72e45c12571acb2258d669484eaef235872 (patch)
tree1b688a6142e44725c5318783cbd576e86707ba72 /cmd
parentb63af5e2c20cc9d2d510c5ff38d48114582d410d (diff)
cmd: ubifs: mark string parameters with const
File name and volume name should be const as they will not be modified in these functions. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ubifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ubifs.c b/cmd/ubifs.c
index 22e95db8ca5..81f2d37fc7b 100644
--- a/cmd/ubifs.c
+++ b/cmd/ubifs.c
@@ -19,7 +19,7 @@
static int ubifs_initialized;
static int ubifs_mounted;
-int cmd_ubifs_mount(char *vol_name)
+int cmd_ubifs_mount(const char *vol_name)
{
int ret;