X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Flogfile.c;h=334226ba5ef3adaf27a87c3a2b1383c0180a2a15;hb=c89182b424bb4184bd7da3f2ab687b542ed7eea3;hp=b75ecb8b39878843b5ca4abf21d89db38e2fa155;hpb=ca4a6c8a856a9012270ec10389b08d54e70e3401;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; \