diff --git a/src/logfile.c b/src/logfile.c
index b75ecb8b39878843b5ca4abf21d89db38e2fa155..334226ba5ef3adaf27a87c3a2b1383c0180a2a15 100644 (file)
--- a/src/logfile.c
+++ b/src/logfile.c
#include "common.h"
#include "plugin.h"
-#include <pthread.h>
-
#define DEFAULT_LOGFILE LOCALSTATEDIR"/log/collectd.log"
#if COLLECT_DEBUG
#define APPEND(bufptr, buflen, key, value) \
if ((buflen > 0) && (strlen (value) > 0)) { \
- int status = ssnprintf (bufptr, buflen, ", %s = %s", key, value); \
+ status = ssnprintf (bufptr, buflen, ", %s = %s", key, value); \
if (status > 0) { \
bufptr += status; \
buflen -= status; \