aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-21 01:24:10 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-21 01:40:55 +0200
commite49f1da7aed6894c8893cf29c33c4ca839d74976 (patch)
tree54fdbf665a9ec8adb5da089e8e305028ff10dea5
parent6e5c091d8f871383af0332bf80943f69889c0da9 (diff)
downloadslcl-e49f1da7aed6894c8893cf29c33c4ca839d74976.tar.gz
Adapt to slweb's include paths
slweb puts its header files into its own directory in order to avoid potential name clashing.
-rw-r--r--auth.c2
-rw-r--r--auth.h2
-rw-r--r--main.c6
-rw-r--r--page.c4
-rw-r--r--page.h2
5 files changed, 8 insertions, 8 deletions
diff --git a/auth.c b/auth.c
index 09a5faa..cd1ec23 100644
--- a/auth.c
+++ b/auth.c
@@ -1,7 +1,7 @@
#include "auth.h"
#include "hex.h"
-#include "http.h"
#include "jwt.h"
+#include <slweb/http.h>
#include <cjson/cJSON.h>
#include <dynstr.h>
#include <openssl/sha.h>
diff --git a/auth.h b/auth.h
index ad46585..0fcf396 100644
--- a/auth.h
+++ b/auth.h
@@ -1,7 +1,7 @@
#ifndef AUTH_H
#define AUTH_H
-#include "http.h"
+#include <slweb/http.h>
#include <stdbool.h>
struct auth *auth_alloc(const char *dir);
diff --git a/main.c b/main.c
index 762db88..45da68f 100644
--- a/main.c
+++ b/main.c
@@ -2,12 +2,12 @@
#include "auth.h"
#include "cftw.h"
-#include "handler.h"
#include "hex.h"
-#include "http.h"
#include "page.h"
#include "style.h"
-#include "wildcard_cmp.h"
+#include <slweb/handler.h>
+#include <slweb/http.h>
+#include <slweb/wildcard_cmp.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <dynstr.h>
diff --git a/page.c b/page.c
index 32cc071..23f1fce 100644
--- a/page.c
+++ b/page.c
@@ -1,8 +1,8 @@
#define _POSIX_C_SOURCE 200809L
#include "page.h"
-#include "http.h"
-#include "html.h"
+#include <slweb/html.h>
+#include <slweb/http.h>
#include <dynstr.h>
#include <dirent.h>
#include <fcntl.h>
diff --git a/page.h b/page.h
index 7d477ff..7160f4b 100644
--- a/page.h
+++ b/page.h
@@ -1,7 +1,7 @@
#ifndef PAGE_H
#define PAGE_H
-#include "http.h"
+#include <slweb/http.h>
#include <stdbool.h>
#include <stddef.h>