From 2574ea03da54335dc1641696aa3bbf1cbe02f766 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 25 Apr 2021 16:49:29 -0400 Subject: clang-format --- dirconvert.c | 8 ++++---- opendircolors.c | 20 +++++++++----------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/dirconvert.c b/dirconvert.c index 40c7ed1..5f76258 100644 --- a/dirconvert.c +++ b/dirconvert.c @@ -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) diff --git a/opendircolors.c b/opendircolors.c index bc1e748..f6ec9c2 100644 --- a/opendircolors.c +++ b/opendircolors.c @@ -26,22 +26,20 @@ * SUCH DAMAGE. */ +#include #include -#include #include #include -#include +#include -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) -- cgit v1.2.3-56-ge451