]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: global: export the display_version() symbol
authorWilliam Lallemand <wlallemand@haproxy.org>
Tue, 5 Sep 2023 13:24:39 +0000 (15:24 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 5 Sep 2023 13:24:39 +0000 (15:24 +0200)
Export the display_version() function which can be used elsewhere than
in haproxy.c

include/haproxy/global.h
src/haproxy.c

index 3f6f1209ed4d7e7c4d0b6e817035c08018df1261..e058d25e214871a2cda67a2349b6bbcf73d90232 100644 (file)
@@ -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);
index 06b988dad28930449e9752dab563547c0492cd19..d5c7121d98bcc045855b0846d84096a02b972923 100644 (file)
@@ -490,7 +490,7 @@ int compare_current_version(const char *version)
        return 0;
 }
 
-static void display_version()
+void display_version()
 {
        struct utsname utsname;