From 1f8cefe2620cfc73ea02869a45eb61fa4f538cab Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 12 Jun 2008 11:35:39 +0200 Subject: [PATCH] email plugin: Cast a `size_t' to `unsigned long' to make format checking happy. --- src/email.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])) -- 2.30.2