summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-06 19:00:18 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-06 19:00:18 +0100
commit879c3fab765eb10251bf177fe5fd955a32186db8 (patch)
treede4ae4e9110d6f024c2d742e02da3ac63374fe4b /src
parentc965744e09a24270bb26e3e008dc2ede76544c98 (diff)
Silence an unused return warning
Diffstat (limited to 'src')
-rw-r--r--src/ot_stats.c4
1 files 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
791 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); 791 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60);
792 off += ip_format(_debug + off, *ip); 792 off += ip_format(_debug + off, *ip);
793 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); 793 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n");
794 (void)write(2, _debug, off); 794 (void)!write(2, _debug, off);
795 COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); 795 COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1);
796 } break; 796 } break;
797 case EVENT_FULLSCRAPE_REQUEST_GZIP: { 797 case EVENT_FULLSCRAPE_REQUEST_GZIP: {
@@ -800,7 +800,7 @@ void stats_issue_event(struct ot_workstruct *ws, ot_status_event event, PROTO_FL
800 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60); 800 int off = snprintf(_debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)time_since_seconds(ot_start_time) / 60);
801 off += ip_format(_debug + off, *ip); 801 off += ip_format(_debug + off, *ip);
802 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n"); 802 off += snprintf(_debug + off, sizeof(_debug) - off, " - FULL SCRAPE\n");
803 (void)write(2, _debug, off); 803 (void)!write(2, _debug, off);
804 COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1); 804 COUNT(OT_COUNTER_FULLSCRAPE_REQUESTS, 1);
805 } break; 805 } break;
806 case EVENT_FAILED: 806 case EVENT_FAILED: