From 4ce906c3d515973ec3f7c714495d6e3bd15645af Mon Sep 17 00:00:00 2001 From: Denis Kirjanov Date: Wed, 28 Feb 2024 08:58:56 -0500 Subject: [PATCH] nstat: constify name argument in generic_proc_open the argument passed to the function is always a constant value Signed-off-by: Denis Kirjanov Signed-off-by: David Ahern --- misc/nstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/nstat.c b/misc/nstat.c index 2c10feaa3..3a58885d9 100644 --- a/misc/nstat.c +++ b/misc/nstat.c @@ -43,7 +43,7 @@ int npatterns; char info_source[128]; int source_mismatch; -static int generic_proc_open(const char *env, char *name) +static int generic_proc_open(const char *env, const char *name) { char store[128]; char *p = getenv(env); -- 2.47.3