Type cast arguments to logit(), fixes warnings from Coverity

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-07 19:36:09 +01:00
parent 884a0a180b
commit 11819e5b7f

View File

@ -1611,7 +1611,7 @@ void fprintlog(struct filed *f, struct buf_msg *buffer)
} else { } else {
logit(" %s:%s\n", f->f_un.f_forw.f_hname, f->f_un.f_forw.f_serv); 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", logit("Forwarding suspension not over, time left: %d.\n",
INET_SUSPEND_TIME - fwd_suspend); (int)(INET_SUSPEND_TIME - fwd_suspend));
} }
break; break;
@ -1679,7 +1679,7 @@ void fprintlog(struct filed *f, struct buf_msg *buffer)
msg.msg_iovlen = iovcnt; msg.msg_iovlen = iovcnt;
for (int i = 0; i < iovcnt; i++) { 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; len += iov[i].iov_len;
} }