diff options
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/sockunion.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index b7c54228..fa6c5846 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 e4b311c7..039da1a9 100644 --- a/lib/sockunion.c +++ b/lib/sockunion.c @@ -557,7 +557,7 @@ union sockunion * sockunion_getsockname (int fd) { int ret; - int len; + socklen_t len; union { struct sockaddr sa; @@ -612,7 +612,7 @@ union sockunion * sockunion_getpeername (int fd) { int ret; - int len; + socklen_t len; union { struct sockaddr sa; |