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: 0 errors, 0 warnings, 53 lines checked
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
#include "config.h"
#include "libcgroup.h"
#include "../src/libcgroup-internal.h"
+
#include <string.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
- int custom = 0;
int loglevel = -1;
+ int custom = 0;
int i;
for (i = 1; i < argc; i++) {