aboutsummaryrefslogtreecommitdiffstats
path: root/dns.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-07 06:34:26 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-07 06:34:26 +0000
commit65b5377c36f1bfc1d3937cd7ac8e9629ac7c3855 (patch)
treead1e502f38522f03564511873228bd811e0f4beb /dns.c
parent94eab2436286e7be5af4c08a9ef3df37b1cc6f7b (diff)
more fixes for gcc4 warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6297 f38db490-d61c-443f-a65b-d21fe96a405b
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();