]> git.proxmox.com Git - mirror_lxc.git/commitdiff
cmd: Fix whitespace issues
authorTobin C. Harding <me@tobin.cc>
Fri, 17 Aug 2018 06:02:28 +0000 (16:02 +1000)
committerTobin C. Harding <me@tobin.cc>
Fri, 17 Aug 2018 06:10:03 +0000 (16:10 +1000)
checkpatch warns about a bunch of whitespace issues.  Fix the
non-controversial ones.

Fix whitespace issues found by checkpatch.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
src/lxc/cmd/lxc_init.c
src/lxc/cmd/lxc_monitord.c
src/lxc/cmd/lxc_user_nic.c

index fa813f35483bb4db20b6c220d02b4a5b49823609..c845f6ae28ae2bd9528807216b77ec5c91a683fc 100644 (file)
@@ -91,7 +91,7 @@ struct arguments {
 };
 
 static int arguments_parse(struct arguments *my_args, int argc,
-                              char *const argv[]);
+                          char *const argv[]);
 
 static struct arguments my_args = {
        .options   = long_options,
@@ -500,11 +500,10 @@ Mandatory or optional arguments to long options are also mandatory or optional\n
 for any corresponding short options.\n\
 \n\
 See the lxc-init man page for further information.\n\n");
-
 }
 
 static int arguments_parse(struct arguments *args, int argc,
-                              char *const argv[])
+                          char *const argv[])
 {
        while (true) {
                int c;
index 0b9d7fd013d5e9d77efb14a6987b61f0d09b5456..4194bb6380ebfbe1304678abdc35221d3b4c9ccb 100644 (file)
@@ -89,7 +89,7 @@ static int lxc_monitord_fifo_create(struct lxc_monitor *mon)
        if (ret < 0)
                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) {
                SYSINFO("Failed to mknod monitor fifo %s", fifo_path);
                return -1;
index c5beb6c8da96e45f8077687b02e621695d137041..3e0cce4acb154f3192910827ec061cbf3f1db5aa 100644 (file)
@@ -219,7 +219,7 @@ static char **get_groupnames(void)
                                usernic_error("%s", "Could not find matched group record\n");
 
                        usernic_error("Failed to get group name: %s(%u)\n",
-                             strerror(errno), group_ids[i]);
+                                     strerror(errno), group_ids[i]);
                        free(buf);
                        free(group_ids);
                        free_groupnames(groupnames);