]> git.cameronkatri.com Git - opendircolors.git/commitdiff
clang-format
authorCameron Katri <me@cameronkatri.com>
Sun, 25 Apr 2021 20:49:29 +0000 (16:49 -0400)
committerCameron Katri <me@cameronkatri.com>
Sun, 25 Apr 2021 20:49:29 +0000 (16:49 -0400)
dirconvert.c
opendircolors.c

index 40c7ed1364cf0fcbd6854fb3b460b130f7435d9a..5f762584f3ab57181dd36bdd2a982899df2d5bf6 100644 (file)
@@ -37,10 +37,10 @@ const char *types[11] = { "di", "ln", "so", "pi", "ex", "bd", "cd", "su", "sg",
        "tw", "ow" };
 const char col[8] = "abcdefgh";
 
-void   usage(void);
-int    tolscolors(char *);
-int    tols_colors(char *);
-char   numtocol(char, bool);
+void usage(void);
+int tolscolors(char *);
+int tols_colors(char *);
+char numtocol(char, bool);
 
 int
 main(int argc, char **argv)
index bc1e7484cf9f3d10ca91f94780821f896dc17459..f6ec9c2d2f37fa804293d1c8f0ef35ae57bab673 100644 (file)
  * SUCH DAMAGE.
  */
 
+#include <getopt.h>
 #include <stdio.h>
-#include <sysexits.h>
 #include <stdlib.h>
 #include <string.h>
-#include <getopt.h>
+#include <sysexits.h>
 
-void   usage(void);
+void usage(void);
 
-static const struct option long_options[] =
-{
-       {"help",                no_argument,            NULL, 'h'},
-       {"bourne-shell",                no_argument,            NULL, 'b'},
-       {"sh",          no_argument,            NULL, 'b'},
-       {"print-database",              no_argument,            NULL, 'p'},
-       {NULL,          no_argument,            NULL, 0}
-};
+static const struct option long_options[] = { { "help", no_argument, NULL,
+                                                 'h' },
+       { "bourne-shell", no_argument, NULL, 'b' },
+       { "sh", no_argument, NULL, 'b' },
+       { "print-database", no_argument, NULL, 'p' },
+       { NULL, no_argument, NULL, 0 } };
 
 int
 main(int argc, char **argv)