mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
more pointer signedness cleanup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
srv.c
6
srv.c
@@ -62,7 +62,7 @@ struct srv {
|
|||||||
unsigned short portnum;
|
unsigned short portnum;
|
||||||
} __attribute__ ((__packed__));
|
} __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;
|
int res = 0;
|
||||||
struct srv *srv = (struct srv *)answer;
|
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);
|
answer += sizeof(struct srv);
|
||||||
len -= 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");
|
ast_log(LOG_WARNING, "Failed to expand hostname\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@@ -99,7 +99,7 @@ struct srv_context {
|
|||||||
int *port;
|
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;
|
struct srv_context *c = (struct srv_context *)context;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user