]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
nfct: fix calloc argument order
authorCorubba Smith <corubba@gmx.de>
Sat, 8 Mar 2025 21:27:56 +0000 (22:27 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 9 Mar 2025 11:19:12 +0000 (12:19 +0100)
commitcee44b4bb0d45868807440317376032f1f186ede
tree3bff42ea2180dafdbfe83f543b6a55b16709eb4e
parent244a2e259d1e80a34cc55e36856b3de5b885395d
nfct: fix calloc argument order

The first argument to calloc() is the number of elements, the second is
the size of a single element. Having the arguments switched shouldn't
make any difference during runtime, but GCC warns about it when using
-Wcalloc-transposed-args [0].

[0] https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcalloc-transposed-args

Signed-off-by: Corubba Smith <corubba@gmx.de>
Signed-off-by: Florian Westphal <fw@strlen.de>
input/flow/ulogd_inpflow_NFCT.c