]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: sample: uninline sample_conv_var2smp_str()
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 13:20:18 +0000 (15:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:36:51 +0000 (01:36 +0200)
There's no reason to limit this one to this file, it could be used in
other contexts.

include/haproxy/sample.h
src/sample.c

index e1d0a868d7586315f5d1eef8d11ccaf88e75fa3a..5f4a6cb08630c526d5b2fa7d80e085855ce04d49 100644 (file)
@@ -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);
index 64a4b573c5f151cc91b8f192081b6560d640126d..67853d29606c60329ece1792516947b619d9667a 100644 (file)
@@ -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: