diff --git a/src/logfile.c b/src/logfile.c
index b75ecb8b39878843b5ca4abf21d89db38e2fa155..d18a5365556a67f9cd0be54595d3cfa3d0883588 100644 (file)
--- a/src/logfile.c
+++ b/src/logfile.c
**/
#include "collectd.h"
+
#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; \