aboutsummaryrefslogtreecommitdiffstats
path: root/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'dns.c')
-rwxr-xr-xdns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dns.c b/dns.c
index 7ea60d5f8..cae804fc3 100755
--- a/dns.c
+++ b/dns.c
@@ -71,7 +71,7 @@ struct dn_answer {
unsigned short size;
} __attribute__ ((__packed__));
-static int skip_name(u_char *s, int len)
+static int skip_name(char *s, int len)
{
int x = 0;
@@ -96,10 +96,10 @@ static int skip_name(u_char *s, int len)
/*--- dns_parse_answer: Parse DNS lookup result, call callback */
static int dns_parse_answer(void *context,
- int class, int type, u_char *answer, int len,
- int (*callback)(void *context, u_char *answer, int len, u_char *fullanswer))
+ int class, int type, char *answer, int len,
+ int (*callback)(void *context, char *answer, int len, char *fullanswer))
{
- u_char *fullanswer = answer;
+ char *fullanswer = answer;
struct dn_answer *ans;
dns_HEADER *h;
int res;
@@ -169,7 +169,7 @@ AST_MUTEX_DEFINE_STATIC(res_lock);
/*--- ast_search_dns: Lookup record in DNS */
int ast_search_dns(void *context,
const char *dname, int class, int type,
- int (*callback)(void *context, u_char *answer, int len, u_char *fullanswer))
+ int (*callback)(void *context, char *answer, int len, char *fullanswer))
{
#ifdef HAS_RES_NINIT
struct __res_state dnsstate;
@@ -179,7 +179,7 @@ int ast_search_dns(void *context,
#ifdef HAS_RES_NINIT
res_ninit(&dnsstate);
- res = res_nsearch(&dnsstate, dname, class, type, answer, sizeof(answer));
+ res = res_nsearch(&dnsstate, dname, class, type, (unsigned char *)answer, sizeof(answer));
#else
ast_mutex_lock(&res_lock);
res_init();