[svn-commits] trunk r37293 - /trunk/srv.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jul 7 08:44:39 MST 2006


Author: russell
Date: Fri Jul  7 10:44:39 2006
New Revision: 37293

URL: http://svn.digium.com/view/asterisk?rev=37293&view=rev
Log:
more pointer signedness cleanup

Modified:
    trunk/srv.c

Modified: trunk/srv.c
URL: http://svn.digium.com/view/asterisk/trunk/srv.c?rev=37293&r1=37292&r2=37293&view=diff
==============================================================================
--- trunk/srv.c (original)
+++ trunk/srv.c Fri Jul  7 10:44:39 2006
@@ -62,7 +62,7 @@
 	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 @@
 	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 @@
 	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;
 



More information about the svn-commits mailing list