commit 3aed0f5036d92bc0a121dc7678e89ede8a603774
parent 4f685ba862b3148f0cf3d4c686e86ae992adb03d
Author: sam-barr <samfbarr@outlook.com>
Date: Sun, 26 Apr 2020 22:05:25 -0500
remove semicolons from config
Diffstat:
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/config.h b/config.h
@@ -22,7 +22,7 @@
SPACER \
{ "", get_colors1, false }, \
{ "", get_colors2, false }, \
-};
+}
#define CPU_REMOVE \
{ \
@@ -34,9 +34,9 @@
REMOVE("Eight-Core"), \
REMOVE("Core"), \
REMOVE("CPU"), \
-};
+}
#define GPU_REMOVE \
{ \
REMOVE("Corporation"), \
-};
+}
diff --git a/paleofetch.c b/paleofetch.c
@@ -32,19 +32,15 @@ struct conf {
bool cached;
} config[] = CONFIG;
-typedef struct {
+struct {
char *substring;
size_t length;
-} STRING_REMOVE;
-
-STRING_REMOVE cpu_remove[] = CPU_REMOVE;
-STRING_REMOVE gpu_remove[] = GPU_REMOVE;
+} cpu_remove[] = CPU_REMOVE, gpu_remove[] = GPU_REMOVE;
Display *display;
struct utsname uname_info;
struct sysinfo my_sysinfo;
-int title_length;
-int status;
+int title_length, status;
/*
* Replaces the first newline character with null terminator