[svn-commits] trunk r37295 - /trunk/apps/app_sms.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jul 7 09:01:37 MST 2006


Author: russell
Date: Fri Jul  7 11:01:36 2006
New Revision: 37295

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

Modified:
    trunk/apps/app_sms.c

Modified: trunk/apps/app_sms.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_sms.c?rev=37295&r1=37294&r2=37295&view=diff
==============================================================================
--- trunk/apps/app_sms.c (original)
+++ trunk/apps/app_sms.c Fri Jul  7 11:01:36 2006
@@ -693,7 +693,7 @@
 		}
 		while (fgets (line, sizeof (line), s))
 		{								 /* process line in file */
-			unsigned char *p;
+			char *p;
 			for (p = line; *p && *p != '\n' && *p != '\r'; p++);
 			*p = 0;					 /* strip eoln */
 			p = line;
@@ -713,7 +713,7 @@
 				{						 /* parse message (UTF-8) */
 					unsigned char o = 0;
 					while (*p && o < SMSLEN)
-						h->ud[o++] = utf8decode(&p);
+						h->ud[o++] = utf8decode((unsigned char **) &p);
 					h->udl = o;
 					if (*p)
 						ast_log (LOG_WARNING, "UD too long in %s\n", fn);



More information about the svn-commits mailing list