From: Phil Sutter Date: Fri, 2 Dec 2016 10:39:56 +0000 (+0100) Subject: ss: Make slabstat_ids local to get_slabstat() X-Git-Tag: v4.10.0~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3535dd61d24a114f058a631e06acf46b0de4b45;p=thirdparty%2Fiproute2.git ss: Make slabstat_ids local to get_slabstat() Signed-off-by: Phil Sutter --- diff --git a/misc/ss.c b/misc/ss.c index 11101cfb4..446a82a45 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -601,21 +601,19 @@ struct slabstat { static struct slabstat slabstat; -static const char *slabstat_ids[] = { - - "sock", - "tcp_bind_bucket", - "tcp_tw_bucket", - "tcp_open_request", - "skbuff_head_cache", -}; - static int get_slabstat(struct slabstat *s) { char buf[256]; FILE *fp; int cnt; static int slabstat_valid; + static const char * const slabstat_ids[] = { + "sock", + "tcp_bind_bucket", + "tcp_tw_bucket", + "tcp_open_request", + "skbuff_head_cache", + }; if (slabstat_valid) return 0;