diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 15:44:39 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 15:44:39 +0000 |
commit | b7afe5457181ce1218fc5066fe443c498efe469a (patch) | |
tree | cd11fe5526246a5b0304681e0c00d3df6896e1db /srv.c | |
parent | a3fbd196220cc14eefdfba8b1a0a2c6723000373 (diff) |
more pointer signedness cleanup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37293 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'srv.c')
-rw-r--r-- | srv.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -62,7 +62,7 @@ struct srv { unsigned short portnum; } __attribute__ ((__packed__)); -static int parse_srv(char *host, int hostlen, int *portno, char *answer, int len, char *msg) +static int parse_srv(char *host, int hostlen, int *portno, unsigned char *answer, int len, unsigned char *msg) { int res = 0; struct srv *srv = (struct srv *)answer; @@ -75,7 +75,7 @@ static int parse_srv(char *host, int hostlen, int *portno, char *answer, int len answer += sizeof(struct srv); len -= sizeof(struct srv); - if ((res = dn_expand((unsigned char *)msg, (unsigned char *)answer + len, (unsigned char *)answer, repl, sizeof(repl) - 1)) < 0) { + if ((res = dn_expand(msg, answer + len, answer, repl, sizeof(repl) - 1)) < 0) { ast_log(LOG_WARNING, "Failed to expand hostname\n"); return -1; } @@ -99,7 +99,7 @@ struct srv_context { int *port; }; -static int srv_callback(void *context, char *answer, int len, char *fullanswer) +static int srv_callback(void *context, unsigned char *answer, int len, unsigned char *fullanswer) { struct srv_context *c = (struct srv_context *)context; |