From: Florian Forster Date: Sun, 9 Nov 2008 10:20:07 +0000 (+0100) Subject: mysql plugin: Fix a typo: `$endptr' -> `&endptr'. X-Git-Tag: collectd-4.6.0~159 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9d2c630cef954f3a58b83d2780eea456ed621328;p=collectd.git mysql plugin: Fix a typo: `$endptr' -> `&endptr'. Yes, I've done a little Perl lately ;) Also fix a non-void function without return value.. --- diff --git a/src/mysql.c b/src/mysql.c index 323154f8..57ad2397 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -125,7 +125,7 @@ static int config (const char *key, const char *value) int temp; errno = 0; - temp = strtol (value, $endptr, 0); + temp = strtol (value, &endptr, 0); if ((errno != 0) || (value == endptr)) { ERROR ("mysql plugin: Invalid \"Port\" argument: %s", @@ -142,6 +142,7 @@ static int config (const char *key, const char *value) } port = temp; + return (0); } else return (-1);