[asterisk-commits] branch 1.2 r28790 - /branches/1.2/utils/smsq.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri May 19 12:18:42 MST 2006


Author: russell
Date: Fri May 19 14:18:41 2006
New Revision: 28790

URL: http://svn.digium.com/view/asterisk?rev=28790&view=rev
Log:
fix the build of smsq with -Werror.  I learned something new about format
strings from this patch!  (issue #7141, Mithraen)

Modified:
    branches/1.2/utils/smsq.c

Modified: branches/1.2/utils/smsq.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/utils/smsq.c?rev=28790&r1=28789&r2=28790&view=diff
==============================================================================
--- branches/1.2/utils/smsq.c (original)
+++ branches/1.2/utils/smsq.c Fri May 19 14:18:41 2006
@@ -142,7 +142,7 @@
          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 @@
    {
       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);
    }



More information about the asterisk-commits mailing list