From: Florian Forster Date: Thu, 12 Jun 2008 09:35:39 +0000 (+0200) Subject: email plugin: Cast a `size_t' to `unsigned long' to make format checking happy. X-Git-Tag: collectd-4.5.0~117^2~8 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1f8cefe2620cfc73ea02869a45eb61fa4f538cab;p=collectd.git email plugin: Cast a `size_t' to `unsigned long' to make format checking happy. --- diff --git a/src/email.c b/src/email.c index 9b82e10e..bcdb3577 100644 --- a/src/email.c +++ b/src/email.c @@ -293,7 +293,8 @@ static void *collect (void *arg) len = strlen (line); if (('\n' != line[len - 1]) && ('\r' != line[len - 1])) { log_warn ("[thread #%5lu] line too long (> %lu characters): " - "'%s' (truncated)", self, sizeof (line) - 1, line); + "'%s' (truncated)", + self, (unsigned long) (sizeof (line) - 1), line); while (NULL != fgets (line, sizeof (line), this->socket)) if (('\n' == line[len - 1]) || ('\r' == line[len - 1]))