diff options
author | paul <paul> | 2004-05-08 05:10:38 +0000 |
---|---|---|
committer | paul <paul> | 2004-05-08 05:10:38 +0000 |
commit | 225282994d74f767058886475d80fee95d450eae (patch) | |
tree | e32988fa60c177a1880357f9d0df4acd004f089f /lib | |
parent | 4a7aac1bc609ee147492b228af9222f526e2ca2f (diff) |
2004-05-08 Sowmini Varadhan <sowmini.varadhan@sun.com>
* command.c: (sockunion_getsockname) use socklen_t for len.
(sockunion_getpeername) ditto.
Diffstat (limited to 'lib')
-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; |