summaryrefslogtreecommitdiff
path: root/adig.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-17 19:04:53 +0000
committerYang Tse <yangsita@gmail.com>2008-10-17 19:04:53 +0000
commit1c9a010cf01bcd8a40b20596707dbc7ce49ed5dc (patch)
treeba29e498e658b3ae0f656d6994054843ed95d111 /adig.c
parent6642bc38df688741f2cb0dc5afbeb9b4593b877f (diff)
downloadc-ares-1c9a010cf01bcd8a40b20596707dbc7ce49ed5dc.tar.gz
c-ares-1c9a010cf01bcd8a40b20596707dbc7ce49ed5dc.tar.bz2
c-ares-1c9a010cf01bcd8a40b20596707dbc7ce49ed5dc.zip
fix compiler warning
Diffstat (limited to 'adig.c')
-rw-r--r--adig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/adig.c b/adig.c
index cc0d42d..7df32d9 100644
--- a/adig.c
+++ b/adig.c
@@ -57,6 +57,7 @@
#include "ares.h"
#include "ares_dns.h"
#include "inet_ntop.h"
+#include "inet_net_pton.h"
#include "ares_getopt.h"
#ifndef HAVE_STRDUP
@@ -213,7 +214,7 @@ int main(int argc, char **argv)
case 's':
/* Add a server, and specify servers in the option mask. */
- if (inet_pton(AF_INET, optarg, &inaddr) <= 0)
+ if (ares_inet_pton(AF_INET, optarg, &inaddr) <= 0)
{
hostent = gethostbyname(optarg);
if (!hostent || hostent->h_addrtype != AF_INET)