From: David Lamparter Date: Wed, 8 Feb 2017 14:19:09 +0000 (+0100) Subject: lib: remove unused str2in6_addr() X-Git-Tag: frr-3.0-branchpoint~42^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=dbb5a5552a5a0d6d6fda5c3df983a08ff763c397;p=mirror%2Ffrr.git lib: remove unused str2in6_addr() Signed-off-by: David Lamparter --- diff --git a/lib/prefix.c b/lib/prefix.c index 8289593781..bc1c681058 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -722,20 +722,6 @@ apply_mask_ipv6 (struct prefix_ipv6 *p) } } -void -str2in6_addr (const char *str, struct in6_addr *addr) -{ - int i; - unsigned int x; - - /* %x must point to unsinged int */ - for (i = 0; i < 16; i++) - { - sscanf (str + (i * 2), "%02x", &x); - addr->s6_addr[i] = x & 0xff; - } -} - void apply_mask (struct prefix *p) { diff --git a/lib/prefix.h b/lib/prefix.h index 45e6368463..eb69e98f04 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -281,7 +281,6 @@ extern void apply_mask_ipv6 (struct prefix_ipv6 *); extern int ip6_masklen (struct in6_addr); extern void masklen2ip6 (const int, struct in6_addr *); -extern void str2in6_addr (const char *, struct in6_addr *); extern const char *inet6_ntoa (struct in6_addr); static inline int ipv6_martian (struct in6_addr *addr)