From: Kamalesh Babulal Date: Fri, 11 Aug 2023 06:55:04 +0000 (+0530) Subject: src/abstraction-common.c: fix coding style complaint X-Git-Tag: v3.2.0~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8214d6f648bc34f67a699baf10f857b232a789e2;p=thirdparty%2Flibcgroup.git 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 --- 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;