From 11819e5b7fcb1b1699c6724b53ddad22878bf047 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 7 Nov 2019 19:36:09 +0100 Subject: [PATCH] Type cast arguments to logit(), fixes warnings from Coverity Signed-off-by: Joachim Nilsson --- src/syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index 02bed74..e6e7ddf 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -1611,7 +1611,7 @@ void fprintlog(struct filed *f, struct buf_msg *buffer) } else { logit(" %s:%s\n", f->f_un.f_forw.f_hname, f->f_un.f_forw.f_serv); logit("Forwarding suspension not over, time left: %d.\n", - INET_SUSPEND_TIME - fwd_suspend); + (int)(INET_SUSPEND_TIME - fwd_suspend)); } break; @@ -1679,7 +1679,7 @@ void fprintlog(struct filed *f, struct buf_msg *buffer) msg.msg_iovlen = iovcnt; for (int i = 0; i < iovcnt; i++) { - logit("iov[%d] => %s\n", i, iov[i].iov_base); + logit("iov[%d] => %s\n", i, (char *)iov[i].iov_base); len += iov[i].iov_len; }