These are keys for lookup and should be const. Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- misc/ss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/ss.c b/misc/ss.c index 3ed7e66962f3..22c76e34f83b 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -4539,7 +4539,7 @@ static int handle_follow_request(struct filter *f) return ret; } -static int get_snmp_int(char *proto, char *key, int *result) +static int get_snmp_int(const char *proto, const char *key, int *result) { char buf[1024]; FILE *fp; -- 2.17.0