Unverified Commit 9c6ffb81 by Tobin C. Harding Committed by Christian Brauner

cmd: Fix whitespace issues

checkpatch warns about a bunch of whitespace issues. Fix the non-controversial ones. Fix whitespace issues found by checkpatch. Signed-off-by: 's avatarTobin C. Harding <me@tobin.cc>
parent 93dd6130
...@@ -91,7 +91,7 @@ struct arguments { ...@@ -91,7 +91,7 @@ struct arguments {
}; };
static int arguments_parse(struct arguments *my_args, int argc, static int arguments_parse(struct arguments *my_args, int argc,
char *const argv[]); char *const argv[]);
static struct arguments my_args = { static struct arguments my_args = {
.options = long_options, .options = long_options,
...@@ -500,11 +500,10 @@ Mandatory or optional arguments to long options are also mandatory or optional\n ...@@ -500,11 +500,10 @@ Mandatory or optional arguments to long options are also mandatory or optional\n
for any corresponding short options.\n\ for any corresponding short options.\n\
\n\ \n\
See the lxc-init man page for further information.\n\n"); See the lxc-init man page for further information.\n\n");
} }
static int arguments_parse(struct arguments *args, int argc, static int arguments_parse(struct arguments *args, int argc,
char *const argv[]) char *const argv[])
{ {
while (true) { while (true) {
int c; int c;
......
...@@ -89,7 +89,7 @@ static int lxc_monitord_fifo_create(struct lxc_monitor *mon) ...@@ -89,7 +89,7 @@ static int lxc_monitord_fifo_create(struct lxc_monitor *mon)
if (ret < 0) if (ret < 0)
return ret; return ret;
ret = mknod(fifo_path, S_IFIFO|S_IRUSR|S_IWUSR, 0); ret = mknod(fifo_path, S_IFIFO | S_IRUSR | S_IWUSR, 0);
if (ret < 0 && errno != EEXIST) { if (ret < 0 && errno != EEXIST) {
SYSINFO("Failed to mknod monitor fifo %s", fifo_path); SYSINFO("Failed to mknod monitor fifo %s", fifo_path);
return -1; return -1;
......
...@@ -219,7 +219,7 @@ static char **get_groupnames(void) ...@@ -219,7 +219,7 @@ static char **get_groupnames(void)
usernic_error("%s", "Could not find matched group record\n"); usernic_error("%s", "Could not find matched group record\n");
usernic_error("Failed to get group name: %s(%u)\n", usernic_error("Failed to get group name: %s(%u)\n",
strerror(errno), group_ids[i]); strerror(errno), group_ids[i]);
free(buf); free(buf);
free(group_ids); free(group_ids);
free_groupnames(groupnames); free_groupnames(groupnames);
......
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