From 7622dfb50288400346372475f80b6b6df6e8559f Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 25 Aug 2013 10:11:34 -0400 Subject: [PATCH] Fix a compile warning. --- redirector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }