projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ddf90
)
collectdctl: Explicitly cast "long" to "int". This might be a problem on 32bit archit...
author
Florian Forster
<octo@huhu.verplant.org>
Tue, 10 Aug 2010 07:35:00 +0000
(09:35 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Tue, 10 Aug 2010 07:35:00 +0000
(09:35 +0200)
src/collectdctl.c
patch
|
blob
|
history
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",