diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-09 17:29:52 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-09 17:29:52 +0000 |
commit | 5af19830c3bbec71b3db5c2c19335e5e0c7ff76f (patch) | |
tree | 14603e557f245c6e2318d66cc79fb501578f0d18 /parse.y | |
parent | 792f302acee3122ed0f9469d8676dbb271f60849 (diff) |
move print_conf and make it take the config as argument
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -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) { |