From: Willy Tarreau Date: Wed, 6 Oct 2021 13:20:18 +0000 (+0200) Subject: CLEANUP: sample: uninline sample_conv_var2smp_str() X-Git-Tag: v2.5-dev9~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4034e2cb5895c08bd821d4db6b5c47f90c4cd121;p=thirdparty%2Fhaproxy.git CLEANUP: sample: uninline sample_conv_var2smp_str() There's no reason to limit this one to this file, it could be used in other contexts. --- diff --git a/include/haproxy/sample.h b/include/haproxy/sample.h index e1d0a868d7..5f4a6cb086 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 64a4b573c5..67853d2960 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: