summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3b18c2)
raw | patch | inline | side by side (parent: f3b18c2)
author | Florian Forster <octo@collectd.org> | |
Fri, 20 Nov 2015 13:58:10 +0000 (14:58 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 20 Nov 2015 13:58:10 +0000 (14:58 +0100) |
This allows users to provide unquoted numeric ports, too.
src/gps.c | patch | blob | history |
diff --git a/src/gps.c b/src/gps.c
index cdbad791b9f4720c5078d014698c690d7ccf6001..e793cfa6c744d1920b1c7a0598d6892d5ee6022e 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
if (strcasecmp ("Host", child->key) == 0)
cf_util_get_string (child, &config.host);
else if (strcasecmp ("Port", child->key) == 0)
- cf_util_get_string (child, &config.port);
+ cf_util_get_service (child, &config.port);
else if (strcasecmp ("Timeout", child->key) == 0)
cf_util_get_cdtime (child, &config.timeout);
else if (strcasecmp ("Pause", child->key) == 0)