summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-10-17 21:11:10 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-12-13 19:30:39 +0400
commit21f569e37d62e3c1de6e41a4e5667c0e28279bb8 (patch)
treec68c14d1d069ce03147133887764d9a7664f1d2b /lib/prefix.h
parent051954f574b9c26458518a7029aeed118f0da620 (diff)
lib: make masklen2ip6() safer and faster
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h2
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);