projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix -Walloc-size
[userspace-rcu.git]
/
src
/
urcu-call-rcu-impl.h
diff --git
a/src/urcu-call-rcu-impl.h
b/src/urcu-call-rcu-impl.h
index cc76f533d0b7a1ebe001c3da4184c9c81612843f..d1c34efd0c7e97293302070182dc0cae8ee451cf 100644
(file)
--- a/
src/urcu-call-rcu-impl.h
+++ b/
src/urcu-call-rcu-impl.h
@@
-900,7
+900,7
@@
void rcu_barrier(void)
goto online;
}
goto online;
}
- completion = calloc(
sizeof(*completion), 1
);
+ completion = calloc(
1, sizeof(*completion)
);
if (!completion)
urcu_die(errno);
if (!completion)
urcu_die(errno);
@@
-915,7
+915,7
@@
void rcu_barrier(void)
cds_list_for_each_entry(crdp, &call_rcu_data_list, list) {
struct call_rcu_completion_work *work;
cds_list_for_each_entry(crdp, &call_rcu_data_list, list) {
struct call_rcu_completion_work *work;
- work = calloc(
sizeof(*work), 1
);
+ work = calloc(
1, sizeof(*work)
);
if (!work)
urcu_die(errno);
work->completion = completion;
if (!work)
urcu_die(errno);
work->completion = completion;
This page took
0.023912 seconds
and
4
git commands to generate.