projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10d81b8
)
MINOR: task: Fix compiler warning.
author
David Carlier
<devnexen@gmail.com>
Tue, 5 Jun 2018 10:41:03 +0000
(10:41 +0000)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 5 Jun 2018 11:55:57 +0000
(13:55 +0200)
Waking up task, when checking if it is a valid entry.
Similarly to commit
caa8a37ffe5922efda7fd7b882e96964b40d7135
,
casting explicitally to void pointer as HA_ATOMIC_CAS needs.
src/task.c
patch
|
blob
|
history
diff --git
a/src/task.c
b/src/task.c
index
fb48407
..
16c7232
100644
(file)
--- a/
src/task.c
+++ b/
src/task.c
@@
-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;