summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <justjosias@tutanota.com>2020-04-22 16:37:26 +0300
committerJosias <justjosias@tutanota.com>2020-04-22 16:37:26 +0300
commit44151ab9e87f78bec90e0685f6a48ea258f6a5de (patch)
tree72d0c3ae9015bca4ab405a74232c60120b079d35
parent24438271686429b98aaff19ba04d64770d868a1d (diff)
Remove size for colors array because it is already initialized
-rw-r--r--rccat.c2
-rw-r--r--rccat.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/rccat.c b/rccat.c
index 47cdff4..9a1d60e 100644
--- a/rccat.c
+++ b/rccat.c
@@ -14,7 +14,7 @@
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
-const char *colors[7] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN};
+const char *colors[] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN};
int lastcolor = 0;
void printColors(char *text)
diff --git a/rccat.md b/rccat.md
index afe2ee9..72d77cf 100644
--- a/rccat.md
+++ b/rccat.md
@@ -48,7 +48,7 @@ Now the colors:
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
-const char *colors[7] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN};
+const char *colors[] = {KNRM, KRED, KGRN, KYEL, KMAG, KCYN};
```
These are all the codes for the colors we want, and an array to order them nicely to randomly index them.