aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-21 15:01:37 +0000
committerOmar Polo <op@omarpolo.com>2021-01-21 15:01:37 +0000
commitb2a6b6137186dd3fce21640150926a133a35c2c8 (patch)
tree51ed37335623b10e07b141e22e56cf132d26fb4b /gmid.c
parent20c9ff466beafa357d501494989a6263516d3342 (diff)
rename mimes to mime ; pass config esplicitly to mime* functions
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmid.c b/gmid.c
index 510d71f..e5ad04b 100644
--- a/gmid.c
+++ b/gmid.c
@@ -304,7 +304,7 @@ listener_main()
struct tls *ctx = NULL;
struct tls_config *tlsconf;
- load_default_mime();
+ load_default_mime(&conf.mime);
if ((tlsconf = tls_config_new()) == NULL)
fatal("tls_config_new");
@@ -364,7 +364,7 @@ main(int argc, char **argv)
conf.ipv6 = 0;
conf.protos = TLS_PROTOCOL_TLSv1_2 | TLS_PROTOCOL_TLSv1_3;
- init_mime();
+ init_mime(&conf.mime);
while ((ch = getopt(argc, argv, "6C:c:d:fhK:np:x:")) != -1) {
switch (ch) {