From: Denis Kirjanov Date: Wed, 28 Feb 2024 13:58:56 +0000 (-0500) Subject: nstat: constify name argument in generic_proc_open X-Git-Tag: v6.9.0~32^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ce906c3d515973ec3f7c714495d6e3bd15645af;p=thirdparty%2Fiproute2.git 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 --- diff --git a/misc/nstat.c b/misc/nstat.c index 2c10feaa..3a58885d 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);