diff --git a/include/haproxy/sample.h b/include/haproxy/sample.h index e1d0a868d..5f4a6cb08 100644 --- a/include/haproxy/sample.h +++ b/include/haproxy/sample.h @@ -41,6 +41,7 @@ struct sample *sample_fetch_as_type(struct proxy *px, struct session *sess, struct stream *strm, unsigned int opt, struct sample_expr *expr, int smp_type); int sample_conv_var2smp_sint(const struct arg *arg, struct sample *smp); +int sample_conv_var2smp_str(const struct arg *arg, struct sample *smp); void release_sample_expr(struct sample_expr *expr); void sample_register_fetches(struct sample_fetch_kw_list *psl); void sample_register_convs(struct sample_conv_kw_list *psl); diff --git a/src/sample.c b/src/sample.c index 64a4b573c..67853d296 100644 --- a/src/sample.c +++ b/src/sample.c @@ -1744,7 +1744,7 @@ static int sample_conv_sha2(const struct arg *arg_p, struct sample *smp, void *p * * This function returns 0 if an error occurs, otherwise it returns 1. */ -static inline int sample_conv_var2smp_str(const struct arg *arg, struct sample *smp) +int sample_conv_var2smp_str(const struct arg *arg, struct sample *smp) { switch (arg->type) { case ARGT_STR: