Unverified Commit 5d2a8f2e by Tobin C. Harding Committed by Christian Brauner

cmd: Use 'void' instead of empty parameter list

checkpatch warns because of function definitions using empty parameter list. We should define these functions with 'void' as the parameter. Use 'void' instead of empty parameter list for function definitions. Signed-off-by: 's avatarTobin C. Harding <me@tobin.cc>
parent f15c45f5
...@@ -473,13 +473,13 @@ static void print_usage(const struct option longopts[]) ...@@ -473,13 +473,13 @@ static void print_usage(const struct option longopts[])
exit(0); exit(0);
} }
static void print_version() static void print_version(void)
{ {
printf("%s\n", LXC_VERSION); printf("%s\n", LXC_VERSION);
exit(0); exit(0);
} }
static void print_help() static void print_help(void)
{ {
fprintf(stderr, "\ fprintf(stderr, "\
Usage: lxc-init --name=NAME -- COMMAND\n\ Usage: lxc-init --name=NAME -- COMMAND\n\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment