From f9732a6fb99a4784abf1135757305abb7b3341c1 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 17 Sep 2016 23:00:48 +0200 Subject: [PATCH] Fix warnings: type mismatch and unused parameters Signed-off-by: Joachim Nilsson --- plugins/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/time.c b/plugins/time.c index de81938a..a1048187 100644 --- a/plugins/time.c +++ b/plugins/time.c @@ -71,14 +71,14 @@ static int send_peer(int sd, char *buf, ssize_t len, struct sockaddr *sa, sockle { char *now; - now = rfctime(buf, &len); + now = rfctime(buf, (size_t *)&len); if (!now) return -1; /* On error, close connection. */ return sendto(sd, now, len, MSG_DONTWAIT, sa, sa_len); } -static int cb(int type) +static int cb(int UNUSED(type)) { int sd = STDIN_FILENO; char buf[BUFSIZ];