mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-10 04:12:48 +02:00
CLEANUP: peers: remove unused sock_init_arg struct member
Since be0688c6 ("MEDIUM: stream_interface: remove the si->init"),
sock_init_arg is completely useless (set but never used later), thus
we remove it.
This commit is contained in:
committed by
Christopher Faulet
parent
7293eb68ff
commit
334caefaaa
@@ -634,7 +634,6 @@ static struct peer *cfg_peers_add_peer(struct peers *peers,
|
||||
p->conf.line = linenum;
|
||||
p->last_change = ns_to_sec(now_ns);
|
||||
p->xprt = xprt_get(XPRT_RAW);
|
||||
p->sock_init_arg = NULL;
|
||||
HA_SPIN_INIT(&p->lock);
|
||||
if (id)
|
||||
p->id = strdup(id);
|
||||
@@ -911,7 +910,6 @@ int cfg_parse_peers(const char *file, int linenum, char **args, int kwm)
|
||||
}
|
||||
|
||||
newpeer->xprt = xprt_get(XPRT_RAW);
|
||||
newpeer->sock_init_arg = NULL;
|
||||
HA_SPIN_INIT(&newpeer->lock);
|
||||
|
||||
newpeer->srv = curpeers->peers_fe->srv;
|
||||
|
||||
Reference in New Issue
Block a user