deinit_deviceatlas() is not called anymore from haproxy.c, removing 2
still includes other parts of the Deviceatlas library so it was not
touched.
#include <types/global.h>
#include <dac.h>
-void deinit_deviceatlas(void);
#endif
#endif
return err_code;
}
-void deinit_deviceatlas(void)
+static void deinit_deviceatlas(void)
{
if (global.deviceatlas.jsonpath != 0) {
free(global.deviceatlas.jsonpath);
cfg_register_keywords(&dacfg_kws);
hap_register_build_opts("Built with DeviceAtlas support.", 0);
hap_register_post_check(init_deviceatlas);
+ hap_register_post_deinit(deinit_deviceatlas);
}
#include <proto/ssl_sock.h>
#endif
-#ifdef USE_DEVICEATLAS
-#include <import/da.h>
-#endif
-
/* list of config files */
static struct list cfg_cfgfiles = LIST_HEAD_INIT(cfg_cfgfiles);
int pid; /* current process id */
protocol_unbind_all();
-#if defined(USE_DEVICEATLAS)
- deinit_deviceatlas();
-#endif
-
list_for_each_entry(pdf, &post_deinit_list, list)
pdf->fct();