X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Femail.c;h=5870ab1de1498593d4636973a65444d4e918d558;hb=5eb71045f1d3b72b17e922a86b5014f68345b5b3;hp=f79217cbd89b373f42e84b2a10ea98bb193b3b19;hpb=9b626288aff81c68fe19210a58b4a32eeefde9d3;p=collectd.git diff --git a/src/email.c b/src/email.c index f79217cb..5870ab1d 100644 --- a/src/email.c +++ b/src/email.c @@ -360,8 +360,8 @@ static void *collect (void *arg) } } /* while (loop) */ - log_debug ("[thread #%5lu] shutting down connection on fd #%i", - pthread_self (), fileno (this->socket)); + log_debug ("Shutting down connection on fd #%i", + fileno (this->socket)); fclose (connection->socket); free (connection); @@ -376,6 +376,7 @@ static void *collect (void *arg) } /* while (1) */ pthread_exit ((void *)0); + return ((void *) 0); } /* static void *collect (void *) */ static void *open_connection (void __attribute__((unused)) *arg) @@ -548,7 +549,9 @@ static void *open_connection (void __attribute__((unused)) *arg) pthread_cond_signal (&conn_available); } - pthread_exit ((void *)0); + + pthread_exit ((void *) 0); + return ((void *) 0); } /* static void *open_connection (void *) */ static int email_init (void)