Commit 90a6196d authored by Mark Karpilovskij's avatar Mark Karpilovskij

knot/common: shut up MacOS compiler warning

parent bef5defc
/* 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment