mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +01:00
Try to work around a compile warning in workqueue.c
This commit is contained in:
parent
ba334c00da
commit
af3079a492
@ -377,8 +377,8 @@ threadpool_queue_work_priority(threadpool_t *pool,
|
|||||||
void (*reply_fn)(void *),
|
void (*reply_fn)(void *),
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
tor_assert(prio >= WORKQUEUE_PRIORITY_FIRST &&
|
tor_assert(((int)prio) >= WORKQUEUE_PRIORITY_FIRST &&
|
||||||
prio <= WORKQUEUE_PRIORITY_LAST);
|
((int)prio) <= WORKQUEUE_PRIORITY_LAST);
|
||||||
|
|
||||||
workqueue_entry_t *ent = workqueue_entry_new(fn, reply_fn, arg);
|
workqueue_entry_t *ent = workqueue_entry_new(fn, reply_fn, arg);
|
||||||
ent->on_pool = pool;
|
ent->on_pool = pool;
|
||||||
|
Loading…
Reference in New Issue
Block a user