mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-15 07:02:28 -04:00
BUILD: peers: Remove unused variables
Since 0909f62266 ("BUG/MEDIUM: peers: messages about unkown tables not
correctly ignored"), the 'sc' variable is no longer used in
peer_treat_updatemsg() and peer_treat_definemsg() functions. So, we must
remove them to avoid compilation warning.
This patch must be backported with the commit above.
This commit is contained in:
parent
5534334f1f
commit
4cfdcbbd19
1 changed files with 0 additions and 2 deletions
|
|
@ -1705,7 +1705,6 @@ static inline int peer_send_teach_stage2_msgs(struct appctx *appctx, struct peer
|
|||
static int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt, int exp,
|
||||
char **msg_cur, char *msg_end, int msg_len, int totl)
|
||||
{
|
||||
struct stconn *sc = appctx_sc(appctx);
|
||||
struct shared_table *st = p->remote_table;
|
||||
struct stksess *ts, *newts;
|
||||
uint32_t update;
|
||||
|
|
@ -2153,7 +2152,6 @@ static inline int peer_treat_switchmsg(struct appctx *appctx, struct peer *p,
|
|||
static inline int peer_treat_definemsg(struct appctx *appctx, struct peer *p,
|
||||
char **msg_cur, char *msg_end, int totl)
|
||||
{
|
||||
struct stconn *sc = appctx_sc(appctx);
|
||||
int table_id_len;
|
||||
struct shared_table *st;
|
||||
int table_type;
|
||||
|
|
|
|||
Loading…
Reference in a new issue