From d7de459b80cceaa84827c3e87569d174c2307c9c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:40:42 +0100 Subject: [PATCH] Use ares_socket_t instead of int for sockets --- src/node_cares.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_cares.cc b/src/node_cares.cc index 8e280aa..bdfb31a 100644 --- a/src/node_cares.cc +++ b/src/node_cares.cc @@ -45,7 +45,7 @@ class Channel : public ObjectWrap { ares_channel channel; - static void SockStateCb(void *data, int sock, int read, int write); + static void SockStateCb(void *data, ares_socket_t sock, int read, int write); static void QueryCb(void *arg, int status, int timeouts, unsigned char* abuf, int alen); }; @@ -746,7 +746,7 @@ Handle Channel::ProcessFD(const Arguments& args) { } -void Channel::SockStateCb(void *data, int sock, int read, int write) { +void Channel::SockStateCb(void *data, ares_socket_t sock, int read, int write) { Channel *c = static_cast(data); HandleScope scope; -- 2.7.4