aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kirjanov <kirjanov@gmail.com>2024-02-28 08:58:56 -0500
committerDavid Ahern <dsahern@kernel.org>2024-03-03 22:32:39 +0000
commit4ce906c3d515973ec3f7c714495d6e3bd15645af (patch)
treed62641013a706b6bfa396a330e0030898ab2abff
parent94107bba2456a855f92f697ce9822586440bc122 (diff)
downloadiproute2-4ce906c3d515973ec3f7c714495d6e3bd15645af.tar.gz
nstat: constify name argument in generic_proc_open
the argument passed to the function is always a constant value Signed-off-by: Denis Kirjanov <dkirjanov@suse.de> Signed-off-by: David Ahern <dsahern@kernel.org>
-rw-r--r--misc/nstat.c2
1 files changed, 1 insertions, 1 deletions
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);