We want the function names in the code to match the fetch names
in the configuration.

Signed-off-by: Nenad Merdanovic <nmer...@anine.io>
---
 src/proto_http.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/proto_http.c b/src/proto_http.c
index 13c75ac..c11a1af 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -10124,7 +10124,7 @@ smp_fetch_stver(const struct arg *args, struct sample 
*smp, const char *kw, void
 
 /* 3. Check on Status Code. We manipulate integers here. */
 static int
-smp_fetch_stcode(const struct arg *args, struct sample *smp, const char *kw, 
void *private)
+smp_fetch_status(const struct arg *args, struct sample *smp, const char *kw, 
void *private)
 {
        struct http_txn *txn;
        char *ptr;
@@ -12933,7 +12933,7 @@ static struct sample_fetch_kw_list 
sample_fetch_keywords = {ILH, {
        { "shdr_val",        smp_fetch_hdr_val,        ARG2(0,STR,SINT), 
val_hdr, SMP_T_SINT, SMP_USE_HRSHV },
 
        { "src_status",      smp_fetch_src_status,     0,                NULL,  
  SMP_T_STR,  SMP_USE_HRSHP },
-       { "status",          smp_fetch_stcode,         0,                NULL,  
  SMP_T_SINT, SMP_USE_HRSHP },
+       { "status",          smp_fetch_status,         0,                NULL,  
  SMP_T_SINT, SMP_USE_HRSHP },
        { "unique-id",       smp_fetch_uniqueid,       0,                NULL,  
  SMP_T_STR,  SMP_SRC_L4SRV },
        { "url",             smp_fetch_url,            0,                NULL,  
  SMP_T_STR,  SMP_USE_HRQHV },
        { "url32",           smp_fetch_url32,          0,                NULL,  
  SMP_T_SINT, SMP_USE_HRQHV },
-- 
2.8.1


Reply via email to