From 9d2c630cef954f3a58b83d2780eea456ed621328 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 9 Nov 2008 11:20:07 +0100 Subject: [PATCH] mysql plugin: Fix a typo: `$endptr' -> `&endptr'. Yes, I've done a little Perl lately ;) Also fix a non-void function without return value.. --- src/mysql.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0