]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: wurfl: use the build options list to report it
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 17:47:13 +0000 (18:47 +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/haproxy.c
src/wurfl.c

index 79844a38496a524e210eae901e70edbcbc9b7bf3..57ea7a1a11e6583b570cd57103a4e5553f405c37 100644 (file)
@@ -463,9 +463,6 @@ static void display_build_opts()
 #endif
 #ifdef USE_51DEGREES
        printf("Built with 51Degrees support\n");
-#endif
-#ifdef USE_WURFL
-       printf("Built with WURFL support\n");
 #endif
        list_for_each_entry(item, &build_opts_list, list) {
                puts(item->str);
index 18723a6b108dece156e6c7ad98d4c39b40e7aaec..1b1765abea40835740cf70e41237a2f8e769aa7e 100644 (file)
@@ -672,6 +672,7 @@ static void __wurfl_init(void)
        sample_register_fetches(&fetch_kws);
        sample_register_convs(&conv_kws);
        cfg_register_keywords(&wurflcfg_kws);
+       hap_register_build_opts("Built with WURFL support.", 0);
 }
 
 // WURFL properties wrapper functions