From 51afc8b8865fe09f76b81ae341e693a5b16199f2 Mon Sep 17 00:00:00 2001 From: JuanJo Ciarlante Date: Tue, 15 Sep 2009 16:48:46 +0200 Subject: * support --disable-ipv6 build properly: - tests now are pass (and fail) properly for ipv6/4 builds * more GNU indenting --- init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init.c') diff --git a/init.c b/init.c index e9cb089..ee479cf 100644 --- a/init.c +++ b/init.c @@ -3095,11 +3095,11 @@ init_instance (struct context *c, const struct env_set *env, const unsigned int /* link_socket_mode allows CM_CHILD_TCP instances to inherit acceptable fds from a top-level parent */ + if (c->options.ce.proto == PROTO_TCPv4_SERVER #ifdef USE_PF_INET6 - if (c->options.ce.proto == PROTO_TCPv4_SERVER || c->options.ce.proto == PROTO_TCPv6_SERVER) -#else - if (c->options.ce.proto == PROTO_TCPv4_SERVER) + || c->options.ce.proto == PROTO_TCPv6_SERVER #endif + ) { if (c->mode == CM_TOP) link_socket_mode = LS_MODE_TCP_LISTEN; -- cgit