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 3f6f120..e058d25 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 06b988d..d5c7121 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;