From: Russell Bryant Date: Tue, 29 Aug 2006 13:48:15 +0000 (+0000) Subject: suppress compiler warning X-Git-Tag: 1.4.0-beta1~267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1627052cf1349397393498906b1ae599b6089ae6;p=thirdparty%2Fasterisk.git suppress compiler warning git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41271 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/utils/smsq.c b/utils/smsq.c index b09c154f5c..64be371810 100644 --- a/utils/smsq.c +++ b/utils/smsq.c @@ -192,6 +192,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch static void rxqcheck (char *dir, char *queue, char *process) { char *p; + void *pp = &p; char dirname[100], temp[100]; DIR *d; @@ -267,7 +268,7 @@ static void rxqcheck (char *dir, char *queue, char *process) { /* read the user data as UTF-8 */ long v; udl = 0; - while ((v = utf8decode ((unsigned char **) &p)) && udl < 160) + while ((v = utf8decode (pp)) && udl < 160) if (v && v <= 0xFFFF) ud[udl++] = v; }