diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-09 16:54:04 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-09 16:54:04 +0000 |
commit | e45334e6ae0b658a2d3d4f47bc3e9ddfdb83a44f (patch) | |
tree | 881c5869011704d8a29ec856de11d1d5b593c8b4 /ge.c | |
parent | d273c0648d7bb1245d43d8d34ff75b62270155e2 (diff) |
move hosts into the config struct
Diffstat (limited to 'ge.c')
-rw-r--r-- | ge.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -34,8 +34,6 @@ struct conf conf; int privsep_process; -struct vhosthead hosts = TAILQ_HEAD_INITIALIZER(hosts); - static const struct option opts[] = { {"help", no_argument, NULL, 'h'}, {"version", no_argument, NULL, 'V'}, @@ -290,7 +288,7 @@ main(int argc, char **argv) /* set up the implicit vhost and location */ host = xcalloc(1, sizeof(*host)); - TAILQ_INSERT_HEAD(&hosts, host, vhosts); + TAILQ_INSERT_HEAD(&conf.hosts, host, vhosts); loc = xcalloc(1, sizeof(*loc)); loc->fcgi = -1; |