summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08cf386)
raw | patch | inline | side by side (parent: 08cf386)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Thu, 11 Aug 2016 15:14:54 +0000 (17:14 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Thu, 11 Aug 2016 15:14:54 +0000 (17:14 +0200) |
src/daemon/common.c | patch | blob | history |
diff --git a/src/daemon/common.c b/src/daemon/common.c
index 45f9d533540c7e07626674242990cd7502c1729d..05b119901ce2bf9a606a4e07c1ed45b7c2d78ce7 100644 (file)
--- a/src/daemon/common.c
+++ b/src/daemon/common.c
int check_capability (int capability) /* {{{ */
{
#ifdef _LINUX_CAPABILITY_VERSION_3
- cap_user_header_t cap_header = calloc(sizeof (*cap_header), 1);
+ cap_user_header_t cap_header = calloc(1, sizeof (*cap_header));
if (cap_header == NULL)
{
ERROR("check_capability: calloc failed");
return (-1);
}
- cap_user_data_t cap_data = calloc(sizeof (*cap_data), 1);
+ cap_user_data_t cap_data = calloc(1, sizeof (*cap_data));
if (cap_data == NULL)
{
ERROR("check_capability: calloc failed");