MEDIUM: sample: change the prototype of sample-fetches functions
This patch removes the "opt" entry from the prototype of the
sample-fetches fucntions. This permits to remove some weight
in the prototype call.
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index 19f878e..3888378 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -1963,8 +1963,7 @@
/* fetch the connection's source IPv4/IPv6 address */
static int
-smp_fetch_src(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *kw, void *private)
+smp_fetch_src(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
struct connection *cli_conn = objt_conn(smp->sess->origin);
@@ -1990,8 +1989,7 @@
/* set temp integer to the connection's source port */
static int
-smp_fetch_sport(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *k, void *private)
+smp_fetch_sport(const struct arg *args, struct sample *smp, const char *k, void *private)
{
struct connection *cli_conn = objt_conn(smp->sess->origin);
@@ -2008,8 +2006,7 @@
/* fetch the connection's destination IPv4/IPv6 address */
static int
-smp_fetch_dst(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *kw, void *private)
+smp_fetch_dst(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
struct connection *cli_conn = objt_conn(smp->sess->origin);
@@ -2037,8 +2034,7 @@
/* set temp integer to the frontend connexion's destination port */
static int
-smp_fetch_dport(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *kw, void *private)
+smp_fetch_dport(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
struct connection *cli_conn = objt_conn(smp->sess->origin);