summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2021-08-22 14:45:19 +0200
committerDirk Engling <erdgeist@erdgeist.org>2021-08-22 14:45:19 +0200
commite89905166c6c1f3347994d2a41eb8d3264c1b56b (patch)
tree89eaaf1e741c79666e7f860a584df4dfd27873d8 /ot_stats.c
parent019d58d154a878aea845989f1a5f4f4eb3b80673 (diff)
Mark return code of write() as intentionally unused
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c4
1 files changed, 2 insertions, 2 deletions
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
691 int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); 691 int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 );
692 off += fmt_ip6c( _debug+off, *ip ); 692 off += fmt_ip6c( _debug+off, *ip );
693 off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); 693 off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" );
694 write( 2, _debug, off ); 694 (void)write( 2, _debug, off );
695 ot_full_scrape_request_count++; 695 ot_full_scrape_request_count++;
696 } 696 }
697 break; 697 break;
@@ -702,7 +702,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event
702 int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); 702 int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 );
703 off += fmt_ip6c(_debug+off, *ip ); 703 off += fmt_ip6c(_debug+off, *ip );
704 off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); 704 off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" );
705 write( 2, _debug, off ); 705 (void)write( 2, _debug, off );
706 ot_full_scrape_request_count++; 706 ot_full_scrape_request_count++;
707 } 707 }
708 break; 708 break;