summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71ddf90)
raw | patch | inline | side by side (parent: 71ddf90)
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 7ee90a033c99c0d942396b33af108bb04e8e17a4..53bd6184f75e8f57e9b0d847cc04e0db9109db0b 100644 (file)
--- a/src/collectdctl.c
+++ b/src/collectdctl.c
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",