]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: provide a generic var-to-sample conversion function
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 13:29:00 +0000 (15:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:36:51 +0000 (01:36 +0200)
commit168e8de1d06adc7aa3e7e2cc2a36935a77c79b9c
tree92240646a84df0727b648ae90bfe4bffd73d596d
parent4034e2cb5895c08bd821d4db6b5c47f90c4cd121
MINOR: sample: provide a generic var-to-sample conversion function

We're using variable-to-sample conversion at least 4 times in the code,
two of which are bogus. Let's introduce a generic conversion function
that performs the required checks.
include/haproxy/sample.h
src/sample.c