From 8aec49ad9604355d742784b4699cd0ba872bc31d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 28 Nov 2017 19:53:25 +0100 Subject: do not return EXIT_FAILURE but goto fail --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacredir.c b/pacredir.c index 9323556..b74c59e 100644 --- a/pacredir.c +++ b/pacredir.c @@ -816,7 +816,7 @@ int main(int argc, char ** argv) { if ((mhd = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, PORT_PACREDIR, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_SOCK_ADDR, &address, MHD_OPTION_END)) == NULL) { write_log(stderr, "Could not start daemon on port %d.\n", PORT_PACREDIR); - return EXIT_FAILURE; + goto fail; } /* initialize curl */ -- cgit v1.2.3-70-g09d2