mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
MINOR: task: Fix compiler warning.
Waking up task, when checking if it is a valid entry.
Similarly to commit caa8a37ffe,
casting explicitally to void pointer as HA_ATOMIC_CAS needs.
This commit is contained in:
parent
10d81b8757
commit
cc0a957a50
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ void __task_wakeup(struct task *t, struct eb_root *root)
|
|||
* in the meanwhile.
|
||||
*/
|
||||
redo:
|
||||
if (unlikely(!HA_ATOMIC_CAS(&t->rq.node.leaf_p, &expected, 0x1))) {
|
||||
if (unlikely(!HA_ATOMIC_CAS(&t->rq.node.leaf_p, &expected, (void *)0x1))) {
|
||||
if (root == &rqueue)
|
||||
HA_SPIN_UNLOCK(TASK_RQ_LOCK, &rq_lock);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue