summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog5
-rw-r--r--lib/prefix.c4
-rw-r--r--lib/prefix.h2
3 files changed, 8 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 3473257a..1d3d3e6d 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-08 Hasso Tepper <hasso at quagga.net>
+
+ * prefix.[hc]: Pass argument to the inet6_ntoa by value making it more
+ inet_ntoa alike.
+
2005-04-07 Paul Jakma <paul.jakma@sun.com>
* linklist.h: Add usage comments.
diff --git a/lib/prefix.c b/lib/prefix.c
index 56539fc9..2e594aa0 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -738,11 +738,11 @@ netmask_str2prefix_str (const char *net_str, const char *mask_str,
#ifdef HAVE_IPV6
/* Utility function for making IPv6 address string. */
const char *
-inet6_ntoa (struct in6_addr *addr)
+inet6_ntoa (struct in6_addr addr)
{
static char buf[INET6_ADDRSTRLEN];
- inet_ntop (AF_INET6, addr, buf, INET6_ADDRSTRLEN);
+ inet_ntop (AF_INET6, &addr, buf, INET6_ADDRSTRLEN);
return buf;
}
#endif /* HAVE_IPV6 */
diff --git a/lib/prefix.h b/lib/prefix.h
index 7ef53473..506d644e 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -173,7 +173,7 @@ int ip6_masklen (struct in6_addr);
void masklen2ip6 (int, struct in6_addr *);
void str2in6_addr (const char *, struct in6_addr *);
-const char *inet6_ntoa (struct in6_addr *);
+const char *inet6_ntoa (struct in6_addr);
#endif /* HAVE_IPV6 */