diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-08 13:44:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-08 13:44:53 -0500 |
| commit | 10c7cd3920b0105a009dae138a481f56473bc463 (patch) | |
| tree | 061c082c167150c7b24d1a16021efc2abc31fcab /lib/prefix.c | |
| parent | e6b737294a80af25060216cbf91b13f2c3a617b4 (diff) | |
| parent | 8ac885457f9a16032fcc157488c0b0ea48a686c1 (diff) | |
Merge pull request #185 from opensourcerouting/coverity-lib-1
Coverity foo
Diffstat (limited to 'lib/prefix.c')
| -rw-r--r-- | lib/prefix.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index 8289593781..bc1c681058 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -723,20 +723,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) { switch (p->family) |
