summaryrefslogtreecommitdiff
path: root/omapip/connection.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-02-01 03:19:56 +0000
committerTed Lemon <source@isc.org>2000-02-01 03:19:56 +0000
commitcfdfb9f126bb8900fa60c4ac5c3326986e5708e7 (patch)
tree81707664b94650775286640e2dab3dbf9baee6c6 /omapip/connection.c
parentfb6297b12be9c65634bd10f8effe1fe76bf07cba (diff)
downloadisc-dhcp-cfdfb9f126bb8900fa60c4ac5c3326986e5708e7.tar.gz
AIX and Digital Unix compatibility fixes.
Diffstat (limited to 'omapip/connection.c')
-rw-r--r--omapip/connection.c5
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) {