diff --git a/src/mysql.c b/src/mysql.c
index 323154f842b9be82d6b49342e81cd7346d4375bd..1c009a07e56c3631446ff5fe2fa9f3b8d60743f7 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);
vl.values = values;
vl.values_len = 1;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "mysql", sizeof (vl.plugin));
sstrncpy (vl.type, type, sizeof (vl.type));
vl.values = values;
vl.values_len = 5;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "mysql", sizeof (vl.plugin));
sstrncpy (vl.type, "mysql_qcache", sizeof (vl.type));
vl.values = values;
vl.values_len = 4;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "mysql", sizeof (vl.plugin));
sstrncpy (vl.type, "mysql_threads", sizeof (vl.type));
vl.values = values;
vl.values_len = 2;
- vl.time = time (NULL);
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "mysql", sizeof (vl.plugin));
sstrncpy (vl.type, "mysql_octets", sizeof (vl.type));