]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
knot/common: shut up MacOS compiler warning
authorMark Karpilovskij <mark.karpilovskij@nic.cz>
Mon, 23 Jul 2018 11:55:25 +0000 (13:55 +0200)
committerMark Karpilovskij <mark.karpilovskij@nic.cz>
Mon, 23 Jul 2018 11:55:25 +0000 (13:55 +0200)
src/knot/common/evsched.c

index e6e97e1036be6d83537479e004367a97ebdbd026..798e4271a9063c375103e411039060ce1fee7c6d 100644 (file)
@@ -1,4 +1,4 @@
-/*  Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/*  Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -70,7 +70,7 @@ static int evsched_run(dthread_t *thread)
        /* Run event loop. */
        pthread_mutex_lock(&sched->heap_lock);
        while (!dt_is_cancelled(thread)) {
-               if (EMPTY_HEAP(&sched->heap)) {
+               if (!!EMPTY_HEAP(&sched->heap)) {
                        pthread_cond_wait(&sched->notify, &sched->heap_lock);
                        continue;
                }