]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mt_lists: Give MT_LIST_ADD, MT_LIST_ADDQ and MT_LIST_DEL a return value.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 20 Sep 2019 15:32:47 +0000 (17:32 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 23 Sep 2019 16:16:08 +0000 (18:16 +0200)
commit0cd6a976ffed82646579b1645a7d60b8ad1a5ffe
tree10d609e6775b542d310c9629fa94db7aff5e201a
parentcb22ad4f7191960e28f457c064ca2d8e6328fc12
MINOR: mt_lists: Give MT_LIST_ADD, MT_LIST_ADDQ and MT_LIST_DEL a return value.

Make it so MT_LIST_ADD and MT_LIST_ADDQ return 1 if it managed to add the
item, 0 (because it was already in a list) otherwise.
Make it so MT_LIST_DEL returns 1 if it managed to remove the item from a
list, or 0 otherwise (because it was in no list).
include/common/mini-clist.h