MINOR: haproxy: export main to ease access from debugger

Better just export main instead of declaring it as extern, it's cleaner
and may be usable elsewhere.
This commit is contained in:
Willy Tarreau 2020-03-03 15:25:10 +01:00
parent 82aafc4a0f
commit 1827845a3d
2 changed files with 1 additions and 1 deletions

View 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)());

View 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");