aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-06-09 09:48:39 +0000
committerOmar Polo <op@omarpolo.com>2024-06-09 09:48:39 +0000
commit345a12c7666a09ecc4e1c2d36b24d60e4f7e75ac (patch)
tree5e24652a920377255655fc30279d49de77f46209
parent68d36b207f055fe76be5f57f034df3c5a60206cf (diff)
remove from gmid.h functions that are used only in gemexp
-rw-r--r--ge.c4
-rw-r--r--gmid.h4
2 files changed, 2 insertions, 6 deletions
diff --git a/ge.c b/ge.c
index e0d7b55..5b21bc1 100644
--- a/ge.c
+++ b/ge.c
@@ -91,7 +91,7 @@ log_request(struct client *c, int code, const char *meta)
*c->domain == '\0' ? c->iri.host : c->domain, b, code, meta);
}
-void
+static void
load_local_cert(struct vhost *h, const char *hostname, const char *dir)
{
char *cert, *key;
@@ -144,7 +144,7 @@ mkdirs(const char *path, mode_t mode)
}
/* $XDG_DATA_HOME/gemexp */
-char *
+static char *
data_dir(void)
{
const char *home, *xdg;
diff --git a/gmid.h b/gmid.h
index 21d793c..d484a17 100644
--- a/gmid.h
+++ b/gmid.h
@@ -367,10 +367,6 @@ enum imsg_type {
IMSG_CTL_PROCFD,
};
-/* gmid.c */
-char *data_dir(void);
-void load_local_cert(struct vhost*, const char*, const char*);
-
/* gmid.c / ge.c */
void log_request(struct client *, int, const char *);