From: Tomas Krizek Date: Wed, 24 Mar 2021 16:44:43 +0000 (+0100) Subject: daemon/udp_queue.c: replace asserts X-Git-Tag: v5.4.0~18^2~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c7ac4a540fa5fadf8f24636911cc6758dce2437;p=thirdparty%2Fknot-resolver.git daemon/udp_queue.c: replace asserts --- diff --git a/daemon/udp_queue.c b/daemon/udp_queue.c index 4d2f27ae9..8617b2c04 100644 --- a/daemon/udp_queue.c +++ b/daemon/udp_queue.c @@ -12,7 +12,6 @@ struct qr_task; -#include #include @@ -134,7 +133,7 @@ void udp_queue_push(int fd, struct kr_request *req, struct qr_task *task) ++(q->len); if (q->len >= UDP_QUEUE_LEN) { - assert(q->len == UDP_QUEUE_LEN); + (void)!kr_assume(q->len == UDP_QUEUE_LEN); udp_queue_send(fd); /* We don't need to search state.waiting_fds; * anyway, it's more efficient to let the hook do that. */