summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2023-08-09 11:00:49 +0200
committerVincent Douillet <vincent@vdouillet.fr>2023-08-09 11:00:49 +0200
commit1970c9982e99daa26f7fc4c6f16b441a0aa806de (patch)
tree53fe09beea071d3f546e8f006619cbf29f8b19c2
parent8b04ab2fc5d34693052fd16de20237498de67f58 (diff)
simplify header import guards
-rw-r--r--browse.h6
-rw-r--r--cgi.h6
-rw-r--r--config.h6
-rw-r--r--http.h6
-rw-r--r--url.h6
5 files changed, 15 insertions, 15 deletions
diff --git a/browse.h b/browse.h
index a4f0583..399bdd9 100644
--- a/browse.h
+++ b/browse.h
@@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef VAULT_BROWSE_H
-#define VAULT_BROWSE_H
+#ifndef BROWSE_H
+#define BROWSE_H
#include <kcgi.h>
@@ -41,4 +41,4 @@
*/
void browse(struct kreq *);
-#endif /* VAULT_BROWSE_H */
+#endif /* BROWSE_H */
diff --git a/cgi.h b/cgi.h
index aff6bdf..b834246 100644
--- a/cgi.h
+++ b/cgi.h
@@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef VAULT_CGI_H
-#define VAULT_CGI_H
+#ifndef CGI_H
+#define CGI_H
#include <kcgi.h>
@@ -38,4 +38,4 @@ if(kcgi_call != KCGI_OK) { \
kutil_warn(r, NULL, "Unexpected CGI error"); \
}
-#endif /* VAULT_CGI_H */
+#endif /* CGI_H */
diff --git a/config.h b/config.h
index 74c8a2e..c79aedc 100644
--- a/config.h
+++ b/config.h
@@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef VAULT_CONFIG_H
-#define VAULT_CONFIG_H
+#ifndef CONFIG_H
+#define CONFIG_H
/*
* The directory that will be browseable through vault. The vault process
@@ -48,4 +48,4 @@
#define LOG_FILE "/var/log/vault.log"
#endif
-#endif /* VAULT_CONFIG_H */
+#endif /* CONFIG_H */
diff --git a/http.h b/http.h
index daee438..b354b98 100644
--- a/http.h
+++ b/http.h
@@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef VAULT_HTTP_H
-#define VAULT_HTTP_H
+#ifndef HTTP_H
+#define HTTP_H
#include <kcgi.h>
@@ -50,4 +50,4 @@ void http_open(struct kreq *, enum khttp);
*/
void http_exit(struct kreq *, enum khttp, char *,...);
-#endif /* VAULT_HTTP_H */
+#endif /* HTTP_H */
diff --git a/url.h b/url.h
index 49b0aa1..7bfa247 100644
--- a/url.h
+++ b/url.h
@@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef VAULT_URL_H
-#define VAULT_URL_H
+#ifndef URL_H
+#define URL_H
#include <stdio.h>
@@ -47,4 +47,4 @@
size_t
url_build(char *, size_t, int,...);
-#endif /* VAULT_URL_H */
+#endif /* URL_H */