From: William Lallemand Date: Tue, 5 Sep 2023 13:24:39 +0000 (+0200) Subject: MINOR: global: export the display_version() symbol X-Git-Tag: v2.9-dev5~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d90d3bf894f9696f0e051437172a68d9ebc35491;p=thirdparty%2Fhaproxy.git MINOR: global: export the display_version() symbol Export the display_version() function which can be used elsewhere than in haproxy.c --- diff --git a/include/haproxy/global.h b/include/haproxy/global.h index 3f6f1209ed..e058d25e21 100644 --- a/include/haproxy/global.h +++ b/include/haproxy/global.h @@ -62,6 +62,7 @@ int delete_oldpid(int pid); void hap_register_build_opts(const char *str, int must_free); int split_version(const char *version, unsigned int *value); int compare_current_version(const char *version); +void display_version(); void mworker_accept_wrapper(int fd); void mworker_reload(void); diff --git a/src/haproxy.c b/src/haproxy.c index 06b988dad2..d5c7121d98 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -490,7 +490,7 @@ int compare_current_version(const char *version) return 0; } -static void display_version() +void display_version() { struct utsname utsname;