summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-11-28 19:53:25 +0100
committerGravatar Christian Hesse <mail@eworm.de>2017-11-28 19:53:25 +0100
commit8aec49ad9604355d742784b4699cd0ba872bc31d (patch)
tree281fc57d13ff3413412658ec5ae80e068df2c3d8
parent0e9c18db5a4f4818f273a72723970b4d11d82eeb (diff)
downloadpacredir-8aec49ad9604355d742784b4699cd0ba872bc31d.tar.gz
pacredir-8aec49ad9604355d742784b4699cd0ba872bc31d.tar.zst
do not return EXIT_FAILURE but goto fail
-rw-r--r--pacredir.c2
1 files changed, 1 insertions, 1 deletions
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 */