aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-02-03 10:54:07 +0000
committerFuwn <[email protected]>2022-02-03 10:54:07 +0000
commit0182a1d2096ef89a04e5f1b457bdf6923c1d642a (patch)
tree57589bd2f23eba498cec14023d7bc27da94ad96e
parentchore: migrate to cmkr (diff)
downloadviv-0182a1d2096ef89a04e5f1b457bdf6923c1d642a.tar.xz
viv-0182a1d2096ef89a04e5f1b457bdf6923c1d642a.zip
fmt(source): refactor include method
-rw-r--r--viv/cli.c10
-rw-r--r--viv/dynamic_array.c2
-rw-r--r--viv/flag.c2
-rw-r--r--viv/gemini.c6
-rw-r--r--viv/log.c4
-rw-r--r--viv/ssl.c6
-rw-r--r--viv/ui.c2
-rw-r--r--viv/viv.c14
8 files changed, 23 insertions, 23 deletions
diff --git a/viv/cli.c b/viv/cli.c
index 65b92c0..6a2a190 100644
--- a/viv/cli.c
+++ b/viv/cli.c
@@ -1,14 +1,14 @@
/* Copyright (C) 2021-2021 Fuwn
* SPDX-License-Identifier: GPL-3.0-only */
-#include "viv/cli.h"
+#include <viv/cli.h>
#include <stdlib.h>
-#include "viv/flag.h"
-#include "viv/gemini.h"
-#include "viv/log.h"
-#include "viv/viv.h"
+#include <viv/flag.h>
+#include <viv/gemini.h>
+#include <viv/log.h>
+#include <viv/viv.h>
CLI_handle CLI_cli(int argc, const char *argv[]) {
CLI_handle cli_handle;
diff --git a/viv/dynamic_array.c b/viv/dynamic_array.c
index 6df62de..9c1d09d 100644
--- a/viv/dynamic_array.c
+++ b/viv/dynamic_array.c
@@ -1,6 +1,6 @@
/* http://www.martinbroadhurst.com/dynamic-array-in-c.html */
-#include "viv/dynamic_array.h"
+#include <viv/dynamic_array.h>
#include <stdlib.h>
#include <string.h>
diff --git a/viv/flag.c b/viv/flag.c
index 67d53be..9d2cd8e 100644
--- a/viv/flag.c
+++ b/viv/flag.c
@@ -3,4 +3,4 @@
#define FLAG_IMPLEMENTATION
-#include "viv/flag.h"
+#include <viv/flag.h>
diff --git a/viv/gemini.c b/viv/gemini.c
index 9c30ea7..7d8ef28 100644
--- a/viv/gemini.c
+++ b/viv/gemini.c
@@ -1,13 +1,13 @@
/* Copyright (C) 2021-2021 Fuwn
* SPDX-License-Identifier: GPL-3.0-only */
-#include "viv/gemini.h"
+#include <viv/gemini.h>
#include <stdlib.h>
#include <string.h>
-#include "viv/log.h"
-#include "viv/viv.h"
+#include <viv/log.h>
+#include <viv/viv.h>
void GEMINI_parse_header(
const char *header,
diff --git a/viv/log.c b/viv/log.c
index 13caa07..17c9d99 100644
--- a/viv/log.c
+++ b/viv/log.c
@@ -1,14 +1,14 @@
/* Copyright (C) 2021-2021 Fuwn
* SPDX-License-Identifier: GPL-3.0-only */
-#include "viv/log.h"
+#include <viv/log.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "viv/viv.h"
+#include <viv/viv.h>
int VIV_LOG_log(VIV_LOG_level level, const char *format, ...) {
FILE *log_file;
diff --git a/viv/ssl.c b/viv/ssl.c
index e73c986..3f3132d 100644
--- a/viv/ssl.c
+++ b/viv/ssl.c
@@ -1,7 +1,7 @@
/* Copyright (C) 2021-2021 Fuwn
* SPDX-License-Identifier: GPL-3.0-only */
-#include "viv/ssl.h"
+#include <viv/ssl.h>
#include <arpa/inet.h>
#include <malloc.h>
@@ -11,8 +11,8 @@
#include <strings.h>
#include <unistd.h>
-#include "viv/log.h"
-#include "viv/viv.h"
+#include <viv/log.h>
+#include <viv/viv.h>
VIV_SSL_connection_context VIV_SSL_open_connection(const char **hostname, int port) {
VIV_SSL_connection_context connection_context;
diff --git a/viv/ui.c b/viv/ui.c
index b27fc43..0e543e9 100644
--- a/viv/ui.c
+++ b/viv/ui.c
@@ -3,7 +3,7 @@
/* NOTE: This source file contains *lots* of filler and testing code! */
-#include "viv/ui.h"
+#include <viv/ui.h>
#include <menu.h>
#include <stdlib.h>
diff --git a/viv/viv.c b/viv/viv.c
index 1edf45c..6c1ff57 100644
--- a/viv/viv.c
+++ b/viv/viv.c
@@ -1,7 +1,7 @@
/* Copyright (C) 2021-2021 Fuwn
* SPDX-License-Identifier: GPL-3.0-only */
-#include "viv/viv.h"
+#include <viv/viv.h>
#include <stdbool.h>
#include <netdb.h>
@@ -10,12 +10,12 @@
#include <string.h>
#include <unistd.h>
-#include "viv/dynamic_array.h"
-#include "viv/cli.h"
-#include "viv/gemini.h"
-#include "viv/log.h"
-#include "viv/ssl.h"
-#include "viv/ui.h"
+#include <viv/dynamic_array.h>
+#include <viv/cli.h>
+#include <viv/gemini.h>
+#include <viv/log.h>
+#include <viv/ssl.h>
+#include <viv/ui.h>
int main(int argc, char *argv[]) {
CLI_handle cli_handle;