diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-17 21:11:10 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-13 19:30:39 +0400 |
commit | 21f569e37d62e3c1de6e41a4e5667c0e28279bb8 (patch) | |
tree | c68c14d1d069ce03147133887764d9a7664f1d2b /lib/prefix.h | |
parent | 051954f574b9c26458518a7029aeed118f0da620 (diff) |
lib: make masklen2ip6() safer and faster
Diffstat (limited to 'lib/prefix.h')
-rw-r--r-- | lib/prefix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index 675f94d4..12c0d07e 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -199,7 +199,7 @@ extern void apply_mask_ipv6 (struct prefix_ipv6 *); *((struct prefix_ipv6 *)(DST)) = *((const struct prefix_ipv6 *)(SRC)); extern int ip6_masklen (struct in6_addr); -extern void masklen2ip6 (int, 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); |