From 2810f88532222b7949143d108fafab447e06df9c Mon Sep 17 00:00:00 2001 From: Marq Schneider Date: Mon, 26 Jul 2010 21:36:45 -0500 Subject: [PATCH] Fix warning on no return value from non-void function. There was a warning at the end of addrinfo_td because it returns a "void *" but had no return statement. The fix was call pthread_exit(). --- btpd/addrinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/btpd/addrinfo.c b/btpd/addrinfo.c index bea2d31..2cec707 100644 --- a/btpd/addrinfo.c +++ b/btpd/addrinfo.c @@ -76,6 +76,7 @@ addrinfo_td(void *arg) td_post(addrinfo_td_cb, ctx); td_post_end(); } + pthread_exit(NULL); } static void