]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
samples/wrapper_test.c: fix checkpatch.pl warnings
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Wed, 16 Mar 2022 16:14:20 +0000 (21:44 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 16 Mar 2022 21:38:20 +0000 (15:38 -0600)
Fix all of the warnings/errors reported by Linux Kernel's checkpatch.pl,
except SPDX_LICENSE_TAG.  It also introduces reverse xmas tree local
variable declarations and header file reordering.

In summary, this patch fixes the following checkpatch.pl
recommendations:
total: 1 errors, 0 warnings, 44 lines checked

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

index 23dbef7fb301a641ac353fca6e4fb3587985551a..c1f88371bf75eaf74fcaefe89374ceb3079e54e1 100644 (file)
@@ -1,10 +1,11 @@
 // SPDX-License-Identifier: LGPL-2.1-only
+#include "../src/libcgroup-internal.h"
 #include <libcgroup.h>
-#include <stdio.h>
+
 #include <string.h>
-#include "../src/libcgroup-internal.h"
+#include <stdio.h>
 
-int main()
+int main(void)
 {
        struct cgroup *cgroup;
        struct cgroup_controller *cgc;