From: Darrick J. Wong Date: Mon, 24 Feb 2025 18:22:07 +0000 (-0800) Subject: xfs_db: pass const pointers when we're not modifying them X-Git-Tag: v6.14.0~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c68e2766c6145f029bab0b59af699fbaf7960440;p=thirdparty%2Fxfsprogs-dev.git xfs_db: pass const pointers when we're not modifying them Pass a const pointer to path_walk since we don't actually modify the contents. Signed-off-by: "Darrick J. Wong" Reviewed-by: Christoph Hellwig Reviewed-by: Andrey Albershteyn --- diff --git a/db/namei.c b/db/namei.c index 4eae4e8f..00610a54 100644 --- a/db/namei.c +++ b/db/namei.c @@ -140,10 +140,10 @@ rele: static int path_walk( xfs_ino_t rootino, - char *path) + const char *path) { struct dirpath *dirpath; - char *p = path; + const char *p = path; int error = 0; if (*p == '/') {