mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-03 20:39:41 -05: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:
parent
7293eb68ff
commit
334caefaaa
2 changed files with 0 additions and 3 deletions
|
|
@ -62,7 +62,6 @@ struct peer {
|
|||
struct sockaddr_storage addr; /* peer address */
|
||||
struct protocol *proto; /* peer address protocol */
|
||||
struct xprt_ops *xprt; /* peer socket operations at transport layer */
|
||||
void *sock_init_arg; /* socket operations's opaque init argument if needed */
|
||||
unsigned int flags; /* peer session flags */
|
||||
unsigned int statuscode; /* current/last session status code */
|
||||
unsigned int reconnect; /* next connect timer */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue