projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix -Walloc-size
[urcu.git]
/
src
/
urcu-call-rcu-impl.h
diff --git
a/src/urcu-call-rcu-impl.h
b/src/urcu-call-rcu-impl.h
index 187727e4137083d975fb3268c7c9106f4bcb7417..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;
@@
-1055,7
+1055,7
@@
void urcu_register_rculfhash_atfork(struct urcu_atfork *atfork)
* This unregistration function is deprecated, meant only for internal
* use by rculfhash.
*/
* This unregistration function is deprecated, meant only for internal
* use by rculfhash.
*/
-__attribute__((
noreturn
))
+__attribute__((
__noreturn__
))
void urcu_unregister_rculfhash_atfork(struct urcu_atfork *atfork __attribute__((unused)))
{
urcu_die(EPERM);
void urcu_unregister_rculfhash_atfork(struct urcu_atfork *atfork __attribute__((unused)))
{
urcu_die(EPERM);
This page took
0.02458 seconds
and
4
git commands to generate.