From 8214d6f648bc34f67a699baf10f857b232a789e2 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Fri, 11 Aug 2023 12:25:04 +0530 Subject: [PATCH] src/abstraction-common.c: fix coding style complaint Fix the checkpatch.pl warnings, making it coding style complaint. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- src/abstraction-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/abstraction-common.c b/src/abstraction-common.c index fe0511d1..980bf52c 100644 --- a/src/abstraction-common.c +++ b/src/abstraction-common.c @@ -73,7 +73,7 @@ int cgroup_convert_int(struct cgroup_controller * const dst_cgc, const char * co /* now scale from the input range to the output range */ out_value = out_value * out_dflt_int / in_dflt_int; - out_value_str = calloc(sizeof(char), OUT_VALUE_STR_LEN); + out_value_str = calloc(OUT_VALUE_STR_LEN, sizeof(char)); if (!out_value_str) { ret = ECGOTHER; goto out; -- 2.47.2