summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_accesslist.c2
-rw-r--r--ot_stats.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c
index 3154e7f..a3a2049 100644
--- a/ot_accesslist.c
+++ b/ot_accesslist.c
@@ -321,7 +321,7 @@ int accesslist_blessip( ot_ip6 ip, ot_permissions permissions ) {
321 if( permissions & OT_PERMISSION_MAY_PROXY ) off += snprintf( _debug+off, 512-off, " may_proxy" ); 321 if( permissions & OT_PERMISSION_MAY_PROXY ) off += snprintf( _debug+off, 512-off, " may_proxy" );
322 if( !permissions ) off += snprintf( _debug+off, sizeof(_debug)-off, " nothing\n" ); 322 if( !permissions ) off += snprintf( _debug+off, sizeof(_debug)-off, " nothing\n" );
323 _debug[off++] = '.'; 323 _debug[off++] = '.';
324 write( 2, _debug, off ); 324 (void)write( 2, _debug, off );
325 } 325 }
326#endif 326#endif
327 327
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;