[asterisk-commits] trunk r28791 - in /trunk: ./ utils/smsq.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri May 19 12:19:27 MST 2006
Author: russell
Date: Fri May 19 14:19:27 2006
New Revision: 28791
URL: http://svn.digium.com/view/asterisk?rev=28791&view=rev
Log:
Merged revisions 28790 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r28790 | russell | 2006-05-19 15:18:41 -0400 (Fri, 19 May 2006) | 3 lines
fix the build of smsq with -Werror. I learned something new about format
strings from this patch! (issue #7141, Mithraen)
........
Modified:
trunk/ (props changed)
trunk/utils/smsq.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: trunk/utils/smsq.c
URL: http://svn.digium.com/view/asterisk/trunk/utils/smsq.c?rev=28791&r1=28790&r2=28791&view=diff
==============================================================================
--- trunk/utils/smsq.c (original)
+++ trunk/utils/smsq.c Fri May 19 14:19:27 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