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.
(cherry picked from commit 4cfdcbbd19071cbf74339a7d26839ca98952b2c7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 71443462c44504d82e63e5c84f46c481ad22dcef)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9628355c3fb1edc226216daace7b671ed63a6f43)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/src/peers.c b/src/peers.c
index 229abcb..ece789d 100644
--- a/src/peers.c
+++ b/src/peers.c
@@ -1546,7 +1546,6 @@
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 stream_interface *si = appctx->owner;
struct shared_table *st = p->remote_table;
struct stksess *ts, *newts;
uint32_t update;
@@ -1901,7 +1900,6 @@
static inline int peer_treat_definemsg(struct appctx *appctx, struct peer *p,
char **msg_cur, char *msg_end, int totl)
{
- struct stream_interface *si = appctx->owner;
int table_id_len;
struct shared_table *st;
int table_type;