aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-06-17 12:48:09 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-06-17 12:48:09 +0530
commitf27b864591814a9e4630ef0ccc5349bf5bcd1366 (patch)
tree96d0d0ec208be2e1e0bcbb3d06a22c13e590de65
parent9d7959bc4b2f70f1d22e296fca0c7a2cc834789a (diff)
(includes): don't include ftw.h unnecessarily
-rw-r--r--config.h4
-rw-r--r--msg.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/config.h b/config.h
index 083c689..f68c1a5 100644
--- a/config.h
+++ b/config.h
@@ -6,5 +6,5 @@
#define OUTPUT "dist"
#define BASE_TEMPLATE "base.html"
-char *html_resources[] = { "index", "posts/a", NULL };
-char *md_resources[] = { "posts/b", NULL };
+static const char *html_resources[] = { "index", "posts/a", NULL };
+static const char *md_resources[] = { "posts/b", NULL };
diff --git a/msg.c b/msg.c
index 4be1243..fd91faf 100644
--- a/msg.c
+++ b/msg.c
@@ -1,7 +1,6 @@
#define _GNU_SOURCE
#include <ctype.h>
-#include <ftw.h>
#include <libgen.h>
#include <mkdio.h>
#include <regex.h>
@@ -9,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
#include "config.h"