]> git.cameronkatri.com Git - opendircolors.git/commitdiff
clang-format everything
authorCameron Katri <me@cameronkatri.com>
Tue, 27 Apr 2021 02:05:30 +0000 (22:05 -0400)
committerCameron Katri <me@cameronkatri.com>
Tue, 27 Apr 2021 02:05:30 +0000 (22:05 -0400)
dirconvert.c
opendircolors.c

index 0b93884f81295aec6fbd48c808ff9838eed37d6e..510821b92864909e7b9cef6c89f57f16dbd01c0d 100644 (file)
  */
 
 #include <ctype.h>
+#include <libgen.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sysexits.h>
-#include <libgen.h>
 
 #include "common.h"
 
index 6f91f0d970e1a5fe2aa9e06c3f53e87887dfd473..da87fed0ee656918229271236565e0db1806fd58 100644 (file)
  * SUCH DAMAGE.
  */
 
+#include <err.h>
+#include <errno.h>
 #include <getopt.h>
+#include <libgen.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sysexits.h>
-#include <errno.h>
-#include <libgen.h>
-#include <err.h>
 
 #include "common.h"
 
-void usage(const char*);
+void usage(const char *);
 
 #define MAXKEYLEN 21
 
@@ -103,7 +103,7 @@ main(int argc, char **argv)
                fd = stdin;
        else if ((fd = fopen(path, "r")) == NULL) {
                warnx("%s: %s\n", path, strerror(errno));
-               return(errno);
+               return (errno);
        }
 
        char *line = NULL;