aboutsummaryrefslogtreecommitdiff
path: root/ge.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-09 16:54:04 +0000
committerOmar Polo <op@omarpolo.com>2023-06-09 16:54:04 +0000
commite45334e6ae0b658a2d3d4f47bc3e9ddfdb83a44f (patch)
tree881c5869011704d8a29ec856de11d1d5b593c8b4 /ge.c
parentd273c0648d7bb1245d43d8d34ff75b62270155e2 (diff)
move hosts into the config struct
Diffstat (limited to 'ge.c')
-rw-r--r--ge.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ge.c b/ge.c
index 63065aa..47ed883 100644
--- a/ge.c
+++ b/ge.c
@@ -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;