From e53acd1cdda521418857adb6e2b64efd2f7a1d62 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 4 Jun 2016 20:14:43 +0200 Subject: [PATCH] Fix minor type warning in debug message Signed-off-by: Joachim Nilsson --- inetd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inetd.c b/inetd.c index becccb91..154a44bb 100755 --- a/inetd.c +++ b/inetd.c @@ -255,7 +255,8 @@ int inetd_start(inetd_t *inetd) /* Read anything lingering, or clean up socket after failure */ len = recv(sd, buf, sizeof(buf), MSG_DONTWAIT); - _d("Read %d lingering bytes from socket before restarting %s ...", len, inetd->svc->cmd); + if (len > 0) + _d("Read %zd lingering bytes from socket before restarting %s ...", len, inetd->svc->cmd); /* Restore O_NONBLOCK for socket */ fcntl(sd, F_SETFL, fcntl(sd, F_GETFL, 0) | O_NONBLOCK);