projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
collectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit archit...
[collectd.git]
/
src
/
collectdctl.c
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
7ee90a0
..
53bd618
100644
(file)
--- 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",