From d90d3bf894f9696f0e051437172a68d9ebc35491 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 5 Sep 2023 15:24:39 +0200 Subject: [PATCH] MINOR: global: export the display_version() symbol Export the display_version() function which can be used elsewhere than in haproxy.c --- include/haproxy/global.h | 1 + src/haproxy.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/haproxy/global.h b/include/haproxy/global.h index 3f6f120..e058d25 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 06b988d..d5c7121 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; -- 1.7.10.4