X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flogfile.c;h=d18a5365556a67f9cd0be54595d3cfa3d0883588;hb=04f27bdd38966e0b826b283d8790ce31fb467929;hp=b75ecb8b39878843b5ca4abf21d89db38e2fa155;hpb=6a68a39a2c6987fdcc94fb1bdd9cc8f598fd9478;p=collectd.git diff --git a/src/logfile.c b/src/logfile.c index b75ecb8b..d18a5365 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -27,11 +27,10 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" -#include - #define DEFAULT_LOGFILE LOCALSTATEDIR"/log/collectd.log" #if COLLECT_DEBUG @@ -201,7 +200,7 @@ static int logfile_notification (const notification_t *n, #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; \