diff options
author | Shane Kerr <shane@isc.org> | 2007-07-13 06:43:43 +0000 |
---|---|---|
committer | Shane Kerr <shane@isc.org> | 2007-07-13 06:43:43 +0000 |
commit | 28868515f6cb8ec3a78773391945ac89d555d65d (patch) | |
tree | 108b4801b3d3d019278281eb276288271480afe3 /omapip/listener.c | |
parent | 763cba6b918975315a644646137fec48e4953058 (diff) | |
download | isc-dhcp-28868515f6cb8ec3a78773391945ac89d555d65d.tar.gz |
Code cleanup to remove warnings from "gcc -Wall".
See RT ticket #16988 for more.
Diffstat (limited to 'omapip/listener.c')
-rw-r--r-- | omapip/listener.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/omapip/listener.c b/omapip/listener.c index cf4ebddc..12ef2e9c 100644 --- a/omapip/listener.c +++ b/omapip/listener.c @@ -71,12 +71,9 @@ isc_result_t omapi_listen_addr (omapi_object_t *h, omapi_addr_t *addr, int max) { - struct hostent *he; - int hix; isc_result_t status; omapi_listener_object_t *obj; int i; - struct in_addr ia; /* Currently only support IPv4 addresses. */ if (addr->addrtype != AF_INET) @@ -218,8 +215,6 @@ isc_result_t omapi_accept (omapi_object_t *h) socklen_t len; omapi_connection_object_t *obj; omapi_listener_object_t *listener; - omapi_addr_t remote_addr; - int i; struct sockaddr_in addr; int socket; @@ -241,7 +236,6 @@ isc_result_t omapi_accept (omapi_object_t *h) /* If we're recording a trace, remember the connection. */ if (trace_record ()) { trace_iov_t iov [3]; - u_int32_t lsock; iov [0].buf = (char *)&addr.sin_port; iov [0].len = sizeof addr.sin_port; iov [1].buf = (char *)&addr.sin_addr; @@ -473,8 +467,6 @@ isc_result_t omapi_listener_stuff_values (omapi_object_t *c, omapi_object_t *id, omapi_object_t *l) { - int i; - if (l -> type != omapi_type_listener) return ISC_R_INVALIDARG; |