The cast functions modify their output type as of commit:
b805f71d1bb1487f01f78a6ffab26d44919e9944

v1.5-dev20 is the first tag containing this comment, the fix
should be backported to haproxy 1.5 and newer.
---
 src/sample.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/sample.c b/src/sample.c
index e24d5084d..3ba7004fb 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -496,8 +496,6 @@ struct sample_conv *find_sample_conv(const char *kw, int 
len)
 
 /******************************************************************/
 /*          Sample casts functions                                */
-/*   Note: these functions do *NOT* set the output type on the    */
-/*   sample, the caller is responsible for doing this on return.  */
 /******************************************************************/
 
 static int c_ip2int(struct sample *smp)
-- 
2.15.1


Reply via email to