REORG/MINOR: stream_interface: move si->fd to struct connection
The socket fd is used only when in socket mode and with a connection.
diff --git a/src/peers.c b/src/peers.c
index db22a84..6fcf2f3 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -1149,7 +1149,7 @@
s->req = s->rep = NULL; /* will be allocated later */
- s->si[0].fd = -1;
+ s->si[0].conn.t.sock.fd = -1;
s->si[0].owner = t;
s->si[0].state = s->si[0].prev_state = SI_ST_EST;
s->si[0].err_type = SI_ET_NONE;
@@ -1167,7 +1167,7 @@
stream_int_register_handler(&s->si[0], &peer_applet);
- s->si[1].fd = -1; /* just to help with debugging */
+ s->si[1].conn.t.sock.fd = -1; /* just to help with debugging */
s->si[1].owner = t;
s->si[1].state = s->si[1].prev_state = SI_ST_ASS;
s->si[1].conn_retries = p->conn_retries;