From: Florian Forster Date: Tue, 10 Aug 2010 07:35:00 +0000 (+0200) Subject: collectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit archit... X-Git-Tag: collectd-5.0.0-beta0~52 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a92f88f0d5e0b0f6b80de5c569cd3d20a5572b95;p=collectd.git collectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit architectures. --- 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",