aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-19 19:19:27 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-19 19:19:27 +0000
commit52c9e41ded7768d4050c2500b2022f01c7c9fa98 (patch)
tree48a52681530328641d2de5ef43c1afe202bef026 /utils
parentfdd9596b0b58b30b1c7674b7b3cca36a9d79acbb (diff)
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) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-rw-r--r--utils/smsq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/smsq.c b/utils/smsq.c
index 361fc2679..429ca0004 100644
--- a/utils/smsq.c
+++ b/utils/smsq.c
@@ -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);
}