aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-01-07 12:37:36 +0200
committerSyndamia <kamen@syndamia.com>2024-01-07 12:37:36 +0200
commitf2dc031f37282ff04ce07887f3b388092115139b (patch)
treeccc690193bb9168449c01c836b94086060a7e555
parentf9990172848eb65f6549a0326d9476df3215e567 (diff)
downloadpico-web-f2dc031f37282ff04ce07887f3b388092115139b.tar
pico-web-f2dc031f37282ff04ce07887f3b388092115139b.tar.gz
pico-web-f2dc031f37282ff04ce07887f3b388092115139b.zip
(browser-cli) Renamed handleCLI to handleBrowserCLI, so there is no collision for tests
-rw-r--r--src/browser-cli.c6
-rw-r--r--src/browser-cli.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/browser-cli.c b/src/browser-cli.c
index 3bea4ba..75a2374 100644
--- a/src/browser-cli.c
+++ b/src/browser-cli.c
@@ -3,9 +3,9 @@
#include <stdio.h>
#include <string.h>
-#include <sds/sds.h>
#include <regex.h>
-#include <util.h>
+#include "sds/sds.h"
+#include "util.h"
struct md_syntax {
regex_t anchor;
@@ -103,7 +103,7 @@ char* findBeginningOfPath(char* uri) {
return startPath;
}
-int handleCLI(sds *host, sds *port, sds *uri, const sds page) {
+int handleBrowserCLI(sds *host, sds *port, sds *uri, const sds page) {
// Get a line
char line[1024];
fgets(line, 1024, stdin);
diff --git a/src/browser-cli.h b/src/browser-cli.h
index 1837c6a..a164dc9 100644
--- a/src/browser-cli.h
+++ b/src/browser-cli.h
@@ -7,6 +7,6 @@ void initRendering();
void freeRendering();
void renderPage(const sds page);
-int handleCLI(sds *host, sds *port, sds *uri, const sds page);
+int handleBrowserCLI(sds *host, sds *port, sds *uri, const sds page);
#endif