summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3f9a38)
raw | patch | inline | side by side (parent: b3f9a38)
author | Florian Forster <octo@huhu.verplant.org> | |
Sun, 9 Nov 2008 10:20:07 +0000 (11:20 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 9 Nov 2008 10:20:07 +0000 (11:20 +0100) |
Yes, I've done a little Perl lately ;)
Also fix a non-void function without return value..
Also fix a non-void function without return value..
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 323154f842b9be82d6b49342e81cd7346d4375bd..57ad23978de761297e235d3d87c28824a16b5b13 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
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",
}
port = temp;
+ return (0);
}
else
return (-1);