]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
src/abstraction-common.c: fix coding style complaint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 11 Aug 2023 06:55:04 +0000 (12:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 11 Aug 2023 17:37:54 +0000 (11:37 -0600)
Fix the checkpatch.pl warnings, making it coding style complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/abstraction-common.c

index fe0511d1a466cbc89158da3e66095595ccab6ef3..980bf52cdb2bd6401eccdc5046f77cfbd1c9975f 100644 (file)
@@ -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;