From 879c3fab765eb10251bf177fe5fd955a32186db8 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 6 Nov 2026 19:00:18 +0100 Subject: Silence an unused return warning --- src/ot_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ot_stats.c b/src/ot_stats.c index d395275..9901081 100644 --- a/src/ot_stats.c +++ b/src/ot_stats.c @@ -791,7 +791,7 @@ void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FL int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); off += ip_format(_debug + off, *ip); off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); - (void)write(2, _debug, off); + (void)!write(2, _debug, off); COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); } break; case EVENT_FULLSCRAPE_REQUEST_GZIP: { @@ -800,7 +800,7 @@ void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FL int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); off += ip_format(_debug + off, *ip); off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); - (void)write(2, _debug, off); + (void)!write(2, _debug, off); COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); } break; case EVENT_FAILED: -- cgit v1.3