summaryrefslogtreecommitdiffstats
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-04-08 01:30:51 +0000
committerhasso <hasso>2005-04-08 01:30:51 +0000
commita068023fc4ccef771e27ad819dd4e0eb1522e6f9 (patch)
tree1c35972b923a75706d5f52821d52e1b8ec9d05c3 /lib/prefix.c
parent06254056b1e404203b67149a808d2acf7b9e3b09 (diff)
downloadquagga-a068023fc4ccef771e27ad819dd4e0eb1522e6f9.tar.bz2
quagga-a068023fc4ccef771e27ad819dd4e0eb1522e6f9.tar.xz
* prefix.[hc]: Pass argument to the inet6_ntoa by value making it more
inet_ntoa alike. * ripngd.[hc], ripng_interface.c, ripng_peer.c: inet6_ntoa() takes argument now by value.
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c4
1 files changed, 2 insertions, 2 deletions
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 */