]> git.refcnt.org Git - colorize.git/commitdiff
Minor tweaks
authorSteven Schubiger <stsc@refcnt.org>
Sun, 1 Oct 2017 13:39:03 +0000 (15:39 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 1 Oct 2017 13:39:03 +0000 (15:39 +0200)
- Omit enumeration identifier
- Reorder const qualifier

colorize.c

index 3e9755af4fd5667bccf26caa8622660906ecd749..218713d92020c159d226fd61402a2465cf6ad5fe 100644 (file)
@@ -164,7 +164,7 @@ struct bytes_size {
     char unit;
 };
 
-enum fmts {
+enum {
     FMT_GENERIC,
     FMT_STRING,
     FMT_QUOTE,
@@ -188,7 +188,7 @@ static const char *formats[] = {
 enum { GENERIC, FOREGROUND = 0, BACKGROUND };
 
 static const struct {
-    struct color const *entries;
+    const struct color *entries;
     unsigned int count;
     const char *desc;
 } tables[] = {