projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3f9a38
)
mysql plugin: Fix a typo: `$endptr' -> `&endptr'.
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..
src/mysql.c
patch
|
blob
|
history
diff --git
a/src/mysql.c
b/src/mysql.c
index
323154f
..
57ad239
100644
(file)
--- 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);