diff mbox series

[iproute2,1/3] nstat: constify name argument in generic_proc_open

Message ID 20240228135858.3258-1-dkirjanov@suse.de (mailing list archive)
State Accepted
Commit 4ce906c3d515973ec3f7c714495d6e3bd15645af
Delegated to: David Ahern
Headers show
Series [iproute2,1/3] nstat: constify name argument in generic_proc_open | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Denis Kirjanov Feb. 28, 2024, 1:58 p.m. UTC
the argument passed to the function
is always a constant value

Signed-off-by: Denis Kirjanov <dkirjanov@suse.de>
---
 misc/nstat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org March 3, 2024, 10:40 p.m. UTC | #1
Hello:

This series was applied to iproute2/iproute2-next.git (main)
by David Ahern <dsahern@kernel.org>:

On Wed, 28 Feb 2024 08:58:56 -0500 you wrote:
> the argument passed to the function
> is always a constant value
> 
> Signed-off-by: Denis Kirjanov <dkirjanov@suse.de>
> ---
>  misc/nstat.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - [iproute2,1/3] nstat: constify name argument in generic_proc_open
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=4ce906c3d515
  - [iproute2,2/3] nstat: use stack space for history file name
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=2f8b36e146a5
  - [iproute2,3/3] nstat: convert sprintf to snprintf
    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=b69e1e0445ab

You are awesome, thank you!
diff mbox series

Patch

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);