MINOR: stick-tables: Make static_table_key a struct variable instead of a pointer
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 29 Aug 2017 13:30:31 +0000 (15:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:35:07 +0000 (10:35 +0200)
commitca20d02ea8d5508fdbccf4319c0d7c83e67817bd
tree8d290700142475997afab32fa09c36a0defdbcce
parentad405f171493fae6ff63f0400f575277a8cd1ecf
MINOR: stick-tables: Make static_table_key a struct variable instead of a pointer

First, this variable does not need to be publicly exposed because it is only
used by stick_table functions. So we declare it as a global static in
stick_table.c file. Then, it is useless to use a pointer. Using a plain struct
variable avoids any dynamic allocation.
include/proto/stick_table.h
src/haproxy.c
src/stick_table.c