]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: da: use the build options list to report it
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 17:50:22 +0000 (18:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 20:30:54 +0000 (21:30 +0100)
This removes one #ifdef from haproxy.c.

src/da.c
src/haproxy.c

index d15e5735a154d13824bbf2b837ec896166bc7c2a..1dd148fdd68107d2a6bb55940f49cb3eabc4a41c 100644 (file)
--- a/src/da.c
+++ b/src/da.c
@@ -364,4 +364,5 @@ static void __da_init(void)
        sample_register_fetches(&fetch_kws);
        sample_register_convs(&conv_kws);
        cfg_register_keywords(&dacfg_kws);
+       hap_register_build_opts("Built with DeviceAtlas support.", 0);
 }
index 2afb3fa6147d01b62482239c361506fde760ae08..63edbd6a8d5d9b1df3d7a7ee9730b244e5780523 100644 (file)
@@ -458,9 +458,6 @@ static void display_build_opts()
        printf("Built with network namespace support\n");
 #endif
 
-#ifdef USE_DEVICEATLAS
-    printf("Built with DeviceAtlas support\n");
-#endif
        list_for_each_entry(item, &build_opts_list, list) {
                puts(item->str);
        }