From: Stephen Hemminger Date: Thu, 15 Nov 2018 22:36:22 +0000 (-0800) Subject: lib/ll_map: make local function static X-Git-Tag: v4.20.0~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc5b7e37acebce3982fe970cf7bc9a62bbbae9ea;p=thirdparty%2Fiproute2.git lib/ll_map: make local function static ll_idx_a2n is only used in ll_map. Signed-off-by: Stephen Hemminger --- diff --git a/include/ll_map.h b/include/ll_map.h index fb708191c..511fe00b8 100644 --- a/include/ll_map.h +++ b/include/ll_map.h @@ -12,6 +12,5 @@ int ll_index_to_flags(unsigned idx); unsigned namehash(const char *str); const char *ll_idx_n2a(unsigned int idx); -unsigned int ll_idx_a2n(const char *name); #endif /* __LL_MAP_H__ */ diff --git a/lib/ll_map.c b/lib/ll_map.c index 1b4095a7d..1ab8ef075 100644 --- a/lib/ll_map.c +++ b/lib/ll_map.c @@ -143,7 +143,7 @@ const char *ll_idx_n2a(unsigned int idx) return buf; } -unsigned int ll_idx_a2n(const char *name) +static unsigned int ll_idx_a2n(const char *name) { unsigned int idx;