mirror of
git://erdgeist.org/opentracker
synced 2025-04-19 19:24:32 +08:00
Mark return code of write() as intentionally unused
This commit is contained in:
parent
019d58d154
commit
e89905166c
@ -321,7 +321,7 @@ int accesslist_blessip( ot_ip6 ip, ot_permissions permissions ) {
|
|||||||
if( permissions & OT_PERMISSION_MAY_PROXY ) off += snprintf( _debug+off, 512-off, " may_proxy" );
|
if( permissions & OT_PERMISSION_MAY_PROXY ) off += snprintf( _debug+off, 512-off, " may_proxy" );
|
||||||
if( !permissions ) off += snprintf( _debug+off, sizeof(_debug)-off, " nothing\n" );
|
if( !permissions ) off += snprintf( _debug+off, sizeof(_debug)-off, " nothing\n" );
|
||||||
_debug[off++] = '.';
|
_debug[off++] = '.';
|
||||||
write( 2, _debug, off );
|
(void)write( 2, _debug, off );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -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 );
|
int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 );
|
||||||
off += fmt_ip6c( _debug+off, *ip );
|
off += fmt_ip6c( _debug+off, *ip );
|
||||||
off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" );
|
off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" );
|
||||||
write( 2, _debug, off );
|
(void)write( 2, _debug, off );
|
||||||
ot_full_scrape_request_count++;
|
ot_full_scrape_request_count++;
|
||||||
}
|
}
|
||||||
break;
|
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 );
|
int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 );
|
||||||
off += fmt_ip6c(_debug+off, *ip );
|
off += fmt_ip6c(_debug+off, *ip );
|
||||||
off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" );
|
off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" );
|
||||||
write( 2, _debug, off );
|
(void)write( 2, _debug, off );
|
||||||
ot_full_scrape_request_count++;
|
ot_full_scrape_request_count++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user