From 4fe2a797f8f6cf9a2e0f9ec4f476327f7e319212 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 29 Dec 2021 15:26:48 +0000 Subject: [PATCH] overlord: Explicitly ignore unwanted value from write Ignoring an error here is consistent with the error handling from the pevious write(sf,...). Signed-off-by: Ian Jackson --- overlord.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overlord.c b/overlord.c index 1cfba9b..bb3cc40 100644 --- a/overlord.c +++ b/overlord.c @@ -249,7 +249,8 @@ static void NONRETURNING docheck(int needwanted) { r= write(sfd,&request_mbuf,sizeof(request_mbuf)); if (r==sizeof(request_mbuf)) { endmagic= REQUEST_END_MAGIC; - write(sfd,&endmagic,sizeof(endmagic)); + r= write(sfd,&endmagic,sizeof(endmagic)); + (void)r; } syslog(LOG_NOTICE,"uservd[%ld] is running",(long)overlordpid); #endif -- 2.30.2