]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: da: make use of the late init registration code
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 19:39:16 +0000 (20:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 20:30:54 +0000 (21:30 +0100)
commit876054df96a15e820f7fa91d8d0f20c8f56e337b
tree7617923d31de0abba2c97288a6fe8d1c5b65d411
parent9f3f2549fb023215ba1e0582ed97a9f373d13721
CLEANUP: da: make use of the late init registration code

Instead of having a #ifdef in the main init code we now use the registered
init functions. Doing so also enables error checking as errors were previously
reported as alerts but ignored. Also they were incorrect as the 'status'
variable was hidden by a second one and was always reporting DA_SYS (which
is apparently an error) in every case including the case where no file was
loaded. The init_deviceatlas() function was unexported since it's not used
outside of this place anymore.
include/import/da.h
src/da.c
src/haproxy.c