MINOR: pattern: make pat_ref_append() return the newly added element
authorWilly Tarreau <w@1wt.eu>
Wed, 28 Oct 2020 09:52:46 +0000 (10:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 31 Oct 2020 12:13:48 +0000 (13:13 +0100)
commitf4edb72e0a02ea610f82702055b856c79814ab4e
treecf286af2794cfe070bf695614186a71722036706
parent8c2db71326addbcf9d6c8ae4d2048247031f9e4c
MINOR: pattern: make pat_ref_append() return the newly added element

It's more convenient to return the element than to return just 0 or 1,
as the next thing we'll want to do is to act on this element! In addition
it was using variable arguments instead of consts, causing some reuse
constraints which were also addressed. This doesn't change its use as
a boolean, hence why call places were not modified.
include/haproxy/pattern.h
src/pattern.c