diff options
Diffstat (limited to 'server/resolv')
-rw-r--r-- | server/resolv/async_resolv.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/server/resolv/async_resolv.c b/server/resolv/async_resolv.c index 5fd4084b..ff84b386 100644 --- a/server/resolv/async_resolv.c +++ b/server/resolv/async_resolv.c @@ -195,7 +195,6 @@ unschedule_timeout_watcher(struct resolv_ctx *ctx) } static void fd_event_add(struct resolv_ctx *ctx, int s); -static void fd_event_write(struct resolv_ctx *ctx, int s); static void fd_event_close(struct resolv_ctx *ctx, int s); /* @@ -216,11 +215,6 @@ fd_event(void *data, int s, int fd_read, int fd_write) return; } - /* If ares needs to write to a descriptor */ - if (fd_write == 1) { - fd_event_write(ctx, s); - } - /* Are we already watching this file descriptor? */ watch = ctx->fds; while (watch) { @@ -260,17 +254,6 @@ fd_event_add(struct resolv_ctx *ctx, int s) } static void -fd_event_write(struct resolv_ctx *ctx, int s) -{ - if (ctx->channel == NULL) { - DEBUG(1, ("Invalid ares channel - this is likely a bug\n")); - return; - } - /* do not allow any read. */ - ares_process_fd(ctx->channel, ARES_SOCKET_BAD, s); -} - -static void fd_event_close(struct resolv_ctx *ctx, int s) { struct fd_watch *watch; |