MINOR: init: Fix the prototype for per-thread free callbacks
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Nov 2020 14:19:19 +0000 (15:19 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Nov 2020 15:36:23 +0000 (16:36 +0100)
commitbbda99b0236999d95d3f0bbe9c6f08bb9b071cf1
tree75586b65b55bf144c5b36818732c8d8eeab4d4f1
parente09b5a39238a86e470d198595002960d971c03cb
MINOR: init: Fix the prototype for per-thread free callbacks

Functions registered to release memory per-thread have no return value. But the
registering function and the function pointer in per_thread_free_fct structure
specify it should return an integer. This patch fixes it.

This patch may be backported as far as 2.0.

(cherry picked from commit 83fefbcdff9f562d719fcb5da6b4a11e20e13c7c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/global.h
src/haproxy.c