mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 00:24:17 +07:00
Fix minor type warning in debug message
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user