From e89905166c6c1f3347994d2a41eb8d3264c1b56b Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 22 Aug 2021 14:45:19 +0200 Subject: Mark return code of write() as intentionally unused --- ot_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index 83cd058..7fc22de 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -691,7 +691,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); off += fmt_ip6c( _debug+off, *ip ); off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); - write( 2, _debug, off ); + (void)write( 2, _debug, off ); ot_full_scrape_request_count++; } break; @@ -702,7 +702,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); off += fmt_ip6c(_debug+off, *ip ); off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); - write( 2, _debug, off ); + (void)write( 2, _debug, off ); ot_full_scrape_request_count++; } break; -- cgit v1.2.3