X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flogfile.c;h=334226ba5ef3adaf27a87c3a2b1383c0180a2a15;hb=290741f2e6de9e9b467463c1f0c6f031c4036428;hp=b75ecb8b39878843b5ca4abf21d89db38e2fa155;hpb=a359afebf9e55cdb46b445e3d46d728a4d6fe992;p=collectd.git diff --git a/src/logfile.c b/src/logfile.c index b75ecb8b..334226ba 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -30,8 +30,6 @@ #include "common.h" #include "plugin.h" -#include - #define DEFAULT_LOGFILE LOCALSTATEDIR"/log/collectd.log" #if COLLECT_DEBUG @@ -201,7 +199,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; \