From bb628eac98dd8753c2f2b2311bf3246800855df8 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 7 Jul 2006 16:20:28 +0000 Subject: pointer signedness warnings git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37302 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- utils/smsq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/smsq.c') diff --git a/utils/smsq.c b/utils/smsq.c index 4954e118b..b09c154f5 100644 --- a/utils/smsq.c +++ b/utils/smsq.c @@ -191,7 +191,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch /* 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 @@ static void rxqcheck (char *dir, char *queue, char *process) { /* 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 @@ main (int argc, const char *argv[]) { /* 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) -- cgit v1.2.3