diff options
author | Ted Lemon <source@isc.org> | 2000-02-01 03:19:56 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2000-02-01 03:19:56 +0000 |
commit | cfdfb9f126bb8900fa60c4ac5c3326986e5708e7 (patch) | |
tree | 81707664b94650775286640e2dab3dbf9baee6c6 /omapip/connection.c | |
parent | fb6297b12be9c65634bd10f8effe1fe76bf07cba (diff) | |
download | isc-dhcp-cfdfb9f126bb8900fa60c4ac5c3326986e5708e7.tar.gz |
AIX and Digital Unix compatibility fixes.
Diffstat (limited to 'omapip/connection.c')
-rw-r--r-- | omapip/connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/omapip/connection.c b/omapip/connection.c index c92ff91d..71e0b1e3 100644 --- a/omapip/connection.c +++ b/omapip/connection.c @@ -32,6 +32,7 @@ isc_result_t omapi_connect (omapi_object_t *c, isc_result_t status; omapi_connection_object_t *obj; int flag; + socklen_t sl; obj = (omapi_connection_object_t *)dmalloc (sizeof *obj, MDL); if (!obj) @@ -131,10 +132,10 @@ isc_result_t omapi_connect (omapi_object_t *c, /* I don't know why this would fail, so I'm tempted not to test the return value. */ - hix = sizeof (obj -> local_addr); + sl = sizeof (obj -> local_addr); if (getsockname (obj -> socket, ((struct sockaddr *) - &obj -> local_addr), &hix) < 0) { + &obj -> local_addr), &sl) < 0) { } if (fcntl (obj -> socket, F_SETFL, O_NONBLOCK) < 0) { |