]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/udp_queue.c: replace asserts
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 24 Mar 2021 16:44:43 +0000 (17:44 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 25 May 2021 10:44:37 +0000 (12:44 +0200)
daemon/udp_queue.c

index 4d2f27ae9758956b000a90382b8dd974e316af53..8617b2c040076291ea63e127574a3355763aebed 100644 (file)
@@ -12,7 +12,6 @@
 
 struct qr_task;
 
-#include <assert.h>
 #include <sys/socket.h>
 
 
@@ -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. */