about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarq Schneider <queueRAM@gmail.com>2010-07-26 21:36:45 -0500
committerMarq Schneider <queueRAM@gmail.com>2010-07-26 21:36:45 -0500
commit2810f88532222b7949143d108fafab447e06df9c (patch)
tree12201f1ccf072d5a439f66f8a7edd8893cf51fca
parentfd18baa9e62f6defd4a285425bd087a4b27c82d3 (diff)
downloadbtpd-2810f88532222b7949143d108fafab447e06df9c.tar.gz
btpd-2810f88532222b7949143d108fafab447e06df9c.zip
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().
-rw-r--r--btpd/addrinfo.c1
1 files changed, 1 insertions, 0 deletions
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