diff options
author | Shane Kerr <shane@isc.org> | 2007-08-22 13:41:37 +0000 |
---|---|---|
committer | Shane Kerr <shane@isc.org> | 2007-08-22 13:41:37 +0000 |
commit | 06eb8bab557b390c5215d830cb947fba54f6816b (patch) | |
tree | d5a94c90f1962ba8907fd5834f61c15baa0be384 /omapip/connection.c | |
parent | af00522b3ef2405e9516f3ce2b53afbdcb30d8ca (diff) | |
download | isc-dhcp-06eb8bab557b390c5215d830cb947fba54f6816b.tar.gz |
Fix a number of warnings (and a few real bugs) found by enabling
gcc warnings.
See RT ticket #17013 for more.
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 3f0965d2..618eaa75 100644 --- a/omapip/connection.c +++ b/omapip/connection.c @@ -173,8 +173,9 @@ isc_result_t omapi_connect_list (omapi_object_t *c, if (bind (obj -> socket, (struct sockaddr *)&local_sin, sizeof local_sin) < 0) { - omapi_object_dereference ((omapi_object_t **) - &obj, MDL); + omapi_connection_object_t **objp = &obj; + omapi_object_t **o = (omapi_object_t **)objp; + omapi_object_dereference(o, MDL); if (errno == EADDRINUSE) return ISC_R_ADDRINUSE; if (errno == EADDRNOTAVAIL) |