projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mysql plugin: Fix a typo: `$endptr' -> `&endptr'.
[collectd.git]
/
src
/
mysql.c
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);