From a92f88f0d5e0b0f6b80de5c569cd3d20a5572b95 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 10 Aug 2010 09:35:00 +0200 Subject: [PATCH] collectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit architectures. --- src/collectdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collectdctl.c b/src/collectdctl.c index 7ee90a03..53bd6184 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -241,7 +241,7 @@ static int flush (lcc_connection_t *c, int argc, char **argv) if (strcasecmp (key, "timeout") == 0) { char *endptr = NULL; - timeout = strtol (value, &endptr, 0); + timeout = (int) strtol (value, &endptr, 0); if (endptr == value) { fprintf (stderr, "ERROR: Failed to parse timeout as number: %s.\n", -- 2.11.0