X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Femail.c;h=8fc5509f3e7e5ece33a15015b0ffa40fde6d6ede;hb=de0fdb208de123fe753c5fcf03533833777a5b4a;hp=5e103ed7a82b4330a719230b31620d1df52bc903;hpb=ef7fec0c4e0bbbabb356e6a570ac6297ee06eb80;p=collectd.git diff --git a/src/email.c b/src/email.c index 5e103ed7..8fc5509f 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); @@ -378,7 +378,7 @@ static void *collect (void *arg) pthread_exit ((void *)0); } /* static void *collect (void *) */ -static void *open_connection (void *arg) +static void *open_connection (void __attribute__((unused)) *arg) { struct sockaddr_un addr; @@ -656,7 +656,6 @@ static void email_submit (const char *type, const char *type_instance, gauge_t v vl.values = values; vl.values_len = 1; - vl.time = time (NULL); sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "email", sizeof (vl.plugin)); sstrncpy (vl.type, type, sizeof (vl.type));