Parent: 78af547e94d9d87d1f06ce0868e947f75af06fb7
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-05-07 23:39:54
Tree: bdeeef5010e3b9c8be9c33276ff9ab766e1445de
shared/util: Fix build error on malloc0 This fixes the parameter order of calloc which causes the following error on recent gcc: CC client/mgmt.o In file included from client/mgmt.c:43: client/mgmt.c: In function ‘cmd_add_ext_adv_params’: client/mgmt.c:5057:28: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 5057 | cp = malloc0(sizeof(*cp)); |
Diffstat
| M | src/shared/util.h | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)