]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix the build of smsq with -Werror. I learned something new about format
authorRussell Bryant <russell@russellbryant.com>
Fri, 19 May 2006 19:18:41 +0000 (19:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 19 May 2006 19:18:41 +0000 (19:18 +0000)
strings from this patch!  (issue #7141, Mithraen)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28790 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/smsq.c

index 361fc267997a94b471a874ff2385e2d6d7138122..429ca0004d7644a1a62416caf24561d367ed1512 100644 (file)
@@ -142,7 +142,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch
          p = channel;
       p = strchr (p, 'X');
       if (p)
-         fprintf (f, "%.*s%c%s\n", p - channel, channel, subaddress, p + 1);
+         fprintf (f, "%.*s%c%s\n", (int)(p - channel), channel, subaddress, p + 1);
       else
          fprintf (f, "%s\n", channel);
    }
@@ -153,7 +153,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch
    {
       p = strchr (callerid, 'X');
       if (p)
-         fprintf (f, "%.*s%c%s", p - callerid, callerid, subaddress, p + 1);
+         fprintf (f, "%.*s%c%s", (int)(p - callerid), callerid, subaddress, p + 1);
       else
          fprintf (f, "%s", callerid);
    }