suppress compiler warning
authorRussell Bryant <russell@russellbryant.com>
Tue, 29 Aug 2006 13:48:15 +0000 (13:48 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 29 Aug 2006 13:48:15 +0000 (13:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41271 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/smsq.c

index b09c154..64be371 100644 (file)
@@ -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;
                }