]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
tools: add trailing comma for multi-line arrays
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 7 Sep 2024 00:15:04 +0000 (01:15 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 7 Sep 2024 15:13:51 +0000 (10:13 -0500)
... otherwise the upcoming clang-format will try to fold them on single
line, making the end result far from ideal.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/114
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c
tools/insmod.c
tools/kmod.c
tools/modinfo.c
tools/modprobe.c
tools/rmmod.c

index 03fcff333fdfc2ecf885f1358fa1030eb5779a22..06e72eea36e68c67875b129bf23e4016a5e2c3ef 100644 (file)
@@ -44,7 +44,7 @@ static const char *const default_cfg_paths[] = {
        "/usr/local/lib/depmod.d",
        DISTCONFDIR "/depmod.d",
        "/lib/depmod.d",
-       NULL
+       NULL,
 };
 
 static const char cmdopts_s[] = "aAb:o:C:E:F:euqrvnP:wmVh";
@@ -68,7 +68,7 @@ static const struct option cmdopts[] = {
        { "map", no_argument, 0, 'm' }, /* deprecated */
        { "version", no_argument, 0, 'V' },
        { "help", no_argument, 0, 'h' },
-       { }
+       { },
 };
 
 static void help(void)
@@ -2579,7 +2579,7 @@ static int depmod_output(struct depmod *depmod, FILE *out)
                { "modules.builtin.bin", output_builtin_bin },
                { "modules.builtin.alias.bin", output_builtin_alias_bin },
                { "modules.devname", output_devname },
-               { }
+               { },
        };
        const char *dname = depmod->cfg->outdirname;
        int dfd, err = 0;
index 4a1d11d118e740defd12cb8662cbb2fde77f79f2..9323fffc79a400d95a7c836324289eab0c5eeef8 100644 (file)
@@ -19,7 +19,7 @@ static const char cmdopts_s[] = "psfVh";
 static const struct option cmdopts[] = {
        {"version", no_argument, 0, 'V'},
        {"help", no_argument, 0, 'h'},
-       {NULL, 0, 0, 0}
+       {NULL, 0, 0, 0},
 };
 
 static void help(void)
index d28ec7ba5edcb99239ee55773dc9b3389b208276..e5314f6cbf6a60a081b8e4e8eed66b07f99069ea 100644 (file)
@@ -20,7 +20,7 @@ static const char options_s[] = "+hV";
 static const struct option options[] = {
        { "help", no_argument, NULL, 'h' },
        { "version", no_argument, NULL, 'V' },
-       {}
+       {},
 };
 
 static const struct kmod_cmd kmod_cmd_help;
index 31ffa99c1f48861aa2010ef0e1bd73d903bd6ed6..c91946c66460341ade1968dfac68a50dab7b367d 100644 (file)
@@ -338,7 +338,7 @@ static const struct option cmdopts[] = {
        {"basedir", required_argument, 0, 'b'},
        {"version", no_argument, 0, 'V'},
        {"help", no_argument, 0, 'h'},
-       {NULL, 0, 0, 0}
+       {NULL, 0, 0, 0},
 };
 
 static void help(void)
index 47b721d7ba145e6b1cda4ce265abcba7b8f20343..c74afbb41d84fbc5f99c6aacde02318cb77da0c7 100644 (file)
@@ -84,7 +84,7 @@ static const struct option cmdopts[] = {
        {"verbose", no_argument, 0, 'v'},
        {"version", no_argument, 0, 'V'},
        {"help", no_argument, 0, 'h'},
-       {NULL, 0, 0, 0}
+       {NULL, 0, 0, 0},
 };
 
 static void help(void)
index 0f28ce20097fa258865e6afe1938d85ff6633c42..7dacab948cb2b8916ff4e843e8af72aa82297630 100644 (file)
@@ -31,7 +31,7 @@ static const struct option cmdopts[] = {
        {"verbose", no_argument, 0, 'v'},
        {"version", no_argument, 0, 'V'},
        {"help", no_argument, 0, 'h'},
-       {NULL, 0, 0, 0}
+       {NULL, 0, 0, 0},
 };
 
 static void help(void)