aboutsummaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-09 17:29:52 +0000
committerOmar Polo <op@omarpolo.com>2023-06-09 17:29:52 +0000
commit5af19830c3bbec71b3db5c2c19335e5e0c7ff76f (patch)
tree14603e557f245c6e2318d66cc79fb501578f0d18 /parse.y
parent792f302acee3122ed0f9469d8676dbb271f60849 (diff)
move print_conf and make it take the config as argument
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y27
1 files changed, 0 insertions, 27 deletions
diff --git a/parse.y b/parse.y
index ecbb728..97bad0e 100644
--- a/parse.y
+++ b/parse.y
@@ -940,33 +940,6 @@ parse_conf(struct conf *c, const char *filename)
return 0;
}
-void
-print_conf(void)
-{
- struct vhost *h;
- /* struct location *l; */
- /* struct envlist *e; */
- /* struct alist *a; */
-
- if (*conf->chroot != '\0')
- printf("chroot \"%s\"\n", conf->chroot);
- printf("ipv6 %s\n", conf->ipv6 ? "on" : "off");
- /* XXX: defined mimes? */
- printf("port %d\n", conf->port);
- printf("prefork %d\n", conf->prefork);
- /* XXX: protocols? */
- if (*conf->user != '\0')
- printf("user \"%s\"\n", conf->user);
-
- TAILQ_FOREACH(h, &conf->hosts, vhosts) {
- printf("\nserver \"%s\" {\n", h->domain);
- printf(" cert \"%s\"\n", h->cert);
- printf(" key \"%s\"\n", h->key);
- /* TODO: print locations... */
- printf("}\n");
- }
-}
-
int
symset(const char *name, const char *val, int persist)
{