X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flogfile.c;h=d18a5365556a67f9cd0be54595d3cfa3d0883588;hb=1aa4295ba6875ceb02a7383237bc2485ffab9c1e;hp=b75ecb8b39878843b5ca4abf21d89db38e2fa155;hpb=142fb2ea490118e62f34df41f907ef1e58fb0be4;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; \