From f2dc031f37282ff04ce07887f3b388092115139b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 7 Jan 2024 12:37:36 +0200 Subject: (browser-cli) Renamed handleCLI to handleBrowserCLI, so there is no collision for tests --- src/browser-cli.c | 6 +++--- src/browser-cli.h | 2 +- 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 #include -#include #include -#include +#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 -- cgit v1.2.3