2004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
* command.c: (sockunion_getsockname) use socklen_t for len.
(sockunion_getpeername) ditto.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index b7c5422..fa6c584 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -6,7 +6,9 @@
* if.c: (connected_add_by_prefix) Add prefix to connected list.
(if_flag_dump) Solaris: Dump IFF_IPv4/6 flag
(if_dump) Dump mtu6 flag, for HAVE_IPV6.
-
+ * command.c: (sockunion_getsockname) use socklen_t for len.
+ (sockunion_getpeername) ditto.
+
2004-04-21 Boris Kovalenko <boris@tagnet.ru>
* daemon.c: (daemon) fix check for error return from setsid
diff --git a/lib/sockunion.c b/lib/sockunion.c
index e4b311c..039da1a 100644
--- a/lib/sockunion.c
+++ b/lib/sockunion.c
@@ -557,7 +557,7 @@
sockunion_getsockname (int fd)
{
int ret;
- int len;
+ socklen_t len;
union
{
struct sockaddr sa;
@@ -612,7 +612,7 @@
sockunion_getpeername (int fd)
{
int ret;
- int len;
+ socklen_t len;
union
{
struct sockaddr sa;