[asterisk-commits] trunk r37302 - /trunk/utils/smsq.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jul 7 09:20:28 MST 2006
Author: russell
Date: Fri Jul 7 11:20:28 2006
New Revision: 37302
URL: http://svn.digium.com/view/asterisk?rev=37302&view=rev
Log:
pointer signedness warnings
Modified:
trunk/utils/smsq.c
Modified: trunk/utils/smsq.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/smsq.c?rev=37302&r1=37301&r2=37302&view=diff
==============================================================================
--- trunk/utils/smsq.c (original)
+++ trunk/utils/smsq.c Fri Jul 7 11:20:28 2006
@@ -191,7 +191,7 @@
/* Process received queue entries and run through a process, setting environment variables */
static void rxqcheck (char *dir, char *queue, char *process)
{
- unsigned char *p;
+ char *p;
char dirname[100],
temp[100];
DIR *d;
@@ -267,7 +267,7 @@
{ /* read the user data as UTF-8 */
long v;
udl = 0;
- while ((v = utf8decode (&p)) && udl < 160)
+ while ((v = utf8decode ((unsigned char **) &p)) && udl < 160)
if (v && v <= 0xFFFF)
ud[udl++] = v;
}
@@ -591,7 +591,7 @@
{ /* multiple command line arguments in UTF-8 */
while (poptPeekArg (optCon) && udl < 160)
{
- unsigned char *a = (char *) poptGetArg (optCon);
+ unsigned char *a = (unsigned char *) poptGetArg (optCon);
if (udl && udl < 160)
ud[udl++] = ' '; /* space between arguments */
while (udl < 160 && *a)
More information about the asterisk-commits
mailing list