]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: haproxy: export main to ease access from debugger
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Mar 2020 14:25:10 +0000 (15:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Mar 2020 14:26:10 +0000 (15:26 +0100)
Better just export main instead of declaring it as extern, it's cleaner
and may be usable elsewhere.

include/types/global.h
src/debug.c

index 0573fb4851846e4cab1aa59b2cf102b74219afb2..0ba3b0ff70c100e3a3781a7bc547024d1b042cfd 100644 (file)
@@ -274,6 +274,7 @@ static inline unsigned long thread_mask(unsigned long mask)
 int tell_old_pids(int sig);
 int delete_oldpid(int pid);
 
+int main(int argc, char **argv);
 void deinit(void);
 void hap_register_build_opts(const char *str, int must_free);
 void hap_register_post_check(int (*fct)());
index 0cd6ef1a825b66c4af553b78789894a7769ae5b4..e6e3047e719a243185555721efc59b0e94167f82 100644 (file)
@@ -101,7 +101,6 @@ void ha_task_dump(struct buffer *buf, const struct task *task, const char *pfx)
        const struct stream *s = NULL;
        const struct appctx __maybe_unused *appctx = NULL;
        struct hlua __maybe_unused *hlua = NULL;
-       extern int main(int, char **);
 
        if (!task) {
                chunk_appendf(buf, "0\n");