summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb59a58)
raw | patch | inline | side by side (parent: fb59a58)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 16:22:32 +0000 (18:22 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 16:23:22 +0000 (18:23 +0200) |
set but not used in function
(468) err in open_connection
(574) err in email_init
(468) err in open_connection
(574) err in email_init
src/email.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 8a1ac2e8491cff6fd9a0917c1983861bc6a67b1d..db6dd414bc824edffb89602fcca683f1788d4710 100644 (file)
--- a/src/email.c
+++ b/src/email.c
{ /* initialize collector threads */
int i = 0;
- int err = 0;
pthread_attr_t ptattr;
collectors[i] = smalloc (sizeof (*collectors[i]));
collectors[i]->socket = NULL;
- if (0 != (err = plugin_thread_create (&collectors[i]->thread,
- &ptattr, collect, collectors[i]))) {
+ if (plugin_thread_create (&collectors[i]->thread,
+ &ptattr, collect, collectors[i]) != 0) {
char errbuf[1024];
- log_err ("pthread_create() failed: %s",
+ log_err ("plugin_thread_create() failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
collectors[i]->thread = (pthread_t) 0;
}
static int email_init (void)
{
- int err = 0;
-
- if (0 != (err = plugin_thread_create (&connector, NULL,
- open_connection, NULL))) {
+ if (plugin_thread_create (&connector, NULL,
+ open_connection, NULL) != 0) {
char errbuf[1024];
disabled = 1;
- log_err ("pthread_create() failed: %s",
+ log_err ("plugin_thread_create() failed: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));
return (-1);
}