]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
lib/ll_map: make local function static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Nov 2018 22:36:22 +0000 (14:36 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 19 Nov 2018 19:42:44 +0000 (11:42 -0800)
ll_idx_a2n is only used in ll_map.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/ll_map.h
lib/ll_map.c

index fb708191c22c547bb0012f8477ada75a953a4ed7..511fe00b8567603fe5ae985e1b79ae078928d5aa 100644 (file)
@@ -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__ */
index 1b4095a7d873b34c2d8eccd0b90ddd2bedb206fa..1ab8ef0758ac566072bea9882a0baa379ae5c2d0 100644 (file)
@@ -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;