commit | 49ff274c29eaa45ae85766e62dab32faea7f32b8 | [log] [tgz] |
---|---|---|
author | Denis Ovsienko <infrastation@yandex.ru> | Mon Oct 17 21:11:10 2011 +0400 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Mon Nov 21 18:26:04 2011 +0400 |
tree | 36b2e399ad9dbec4e525d134ba5891aa117a8c66 | |
parent | ba1a944aa7adffd9194ef0ad61649fe3e02b0f38 [diff] [blame] |
lib: make masklen2ip6() safer and faster
diff --git a/lib/prefix.h b/lib/prefix.h index 675f94d..12c0d07 100644 --- a/lib/prefix.h +++ b/lib/prefix.h
@@ -199,7 +199,7 @@ *((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);