summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2013-08-25 10:11:34 -0400
committerSolomon Peachy <pizza@shaftnet.org>2013-08-25 10:11:34 -0400
commit7622dfb50288400346372475f80b6b6df6e8559f (patch)
tree5d8d75a4071bd2939ac5422a6a35f38769460126
parent4ed6c4a3a8407469a9a379c68c194bec62346704 (diff)
downloadsobredirect-7622dfb50288400346372475f80b6b6df6e8559f.tar.gz
sobredirect-7622dfb50288400346372475f80b6b6df6e8559f.tar.bz2
sobredirect-7622dfb50288400346372475f80b6b6df6e8559f.zip
Fix a compile warning.
-rw-r--r--redirector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redirector.c b/redirector.c
index f425aff..40aca45 100644
--- a/redirector.c
+++ b/redirector.c
@@ -815,7 +815,7 @@ int main (int argc, char **argv)
sequence_dat_rx = msg_in->seqnum_dat + msg_in->pktlen;
if ((i - sizeof(struct s_msg)) < msg_in->pktlen) {
- syslog(LOG_WARNING, "Short read! (%d vs %d bytes) truncating\n", msg_in->pktlen, i - sizeof(struct s_msg));
+ syslog(LOG_WARNING, "Short read! (%d vs %d bytes) truncating\n", msg_in->pktlen, (int) (i - sizeof(struct s_msg)));
msg_in->pktlen = i - sizeof(struct s_msg);
}