diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 16:20:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-07 16:20:28 +0000 |
commit | 8cb56832065e8f5075071ad76609ec8d89683128 (patch) | |
tree | 86440d8b95c1cc58bdfb278a5ca0942b7faa6849 /utils/smsq.c | |
parent | bf5755d84b60ebbf560f9d407bf11c0c8bf0fc96 (diff) |
pointer signedness warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37302 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils/smsq.c')
-rw-r--r-- | utils/smsq.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |