Skip to content
Snippets Groups Projects
Commit c91382a0 authored by Russell Bryant's avatar Russell Bryant
Browse files

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: https://origsvn.digium.com/svn/asterisk/trunk@28791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8029c584
Branches
Tags
No related merge requests found
...@@ -142,7 +142,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch ...@@ -142,7 +142,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch
p = channel; p = channel;
p = strchr (p, 'X'); p = strchr (p, 'X');
if (p) 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 else
fprintf (f, "%s\n", channel); fprintf (f, "%s\n", channel);
} }
...@@ -153,7 +153,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch ...@@ -153,7 +153,7 @@ static char txqcheck (char *dir, char *queue, char subaddress, char *channel, ch
{ {
p = strchr (callerid, 'X'); p = strchr (callerid, 'X');
if (p) 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 else
fprintf (f, "%s", callerid); fprintf (f, "%s", callerid);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment