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/frontend.c b/src/frontend.c
index 001b74d..efd6383 100644
--- a/src/frontend.c
+++ b/src/frontend.c
@@ -159,8 +159,7 @@
/* set temp integer to the id of the frontend */
static int
-smp_fetch_fe_id(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *kw, void *private)
+smp_fetch_fe_id(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
smp->flags = SMP_F_VOL_SESS;
smp->type = SMP_T_UINT;
@@ -173,8 +172,7 @@
* an undefined behaviour.
*/
static int
-smp_fetch_fe_sess_rate(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *kw, void *private)
+smp_fetch_fe_sess_rate(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
smp->flags = SMP_F_VOL_TEST;
smp->type = SMP_T_UINT;
@@ -187,8 +185,7 @@
* an undefined behaviour.
*/
static int
-smp_fetch_fe_conn(unsigned int opt, const struct arg *args, struct sample *smp,
- const char *kw, void *private)
+smp_fetch_fe_conn(const struct arg *args, struct sample *smp, const char *kw, void *private)
{
smp->flags = SMP_F_VOL_TEST;
smp->type = SMP_T_UINT;