[asterisk-commits] qwell: trunk r41274 - /trunk/apps/app_sms.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Aug 29 10:31:16 MST 2006


Author: qwell
Date: Tue Aug 29 12:31:15 2006
New Revision: 41274

URL: http://svn.digium.com/view/asterisk?rev=41274&view=rev
Log:
suppress compiler warning

Code shamelessly borrowed from r41271 (it was the same warning/fix)

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=41274&r1=41273&r2=41274&view=diff
==============================================================================
--- trunk/apps/app_sms.c (original)
+++ trunk/apps/app_sms.c Tue Aug 29 12:31:15 2006
@@ -691,6 +691,7 @@
 		while (fgets (line, sizeof (line), s))
 		{								 /* process line in file */
 			char *p;
+			void *pp = &p;
 			for (p = line; *p && *p != '\n' && *p != '\r'; p++);
 			*p = 0;					 /* strip eoln */
 			p = line;
@@ -710,7 +711,7 @@
 				{						 /* parse message (UTF-8) */
 					unsigned char o = 0;
 					while (*p && o < SMSLEN)
-						h->ud[o++] = utf8decode((unsigned char **) &p);
+						h->ud[o++] = utf8decode(pp);
 					h->udl = o;
 					if (*p)
 						ast_log (LOG_WARNING, "UD too long in %s\n", fn);



More information about the asterisk-commits mailing list