aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_mysql.c
diff options
context:
space:
mode:
authorreinelt <>2005-06-06 09:24:07 +0000
committerreinelt <>2005-06-06 09:24:07 +0000
commitdea76e833323f15f60a7c38bb1f9af0284a70531 (patch)
tree651a30df2b8cac7353668fe147afefbba7bdb29a /plugin_mysql.c
parent7c66aa9264793922a114ec0b7f9156b9a9e46846 (diff)
downloadlcd4linux-dea76e833323f15f60a7c38bb1f9af0284a70531.tar.gz
[lcd4linux @ 2005-06-06 09:24:07 by reinelt]
two bugs in plugin_mysql.c fixed
Diffstat (limited to 'plugin_mysql.c')
-rw-r--r--plugin_mysql.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugin_mysql.c b/plugin_mysql.c
index a55802d..66fc1ea 100644
--- a/plugin_mysql.c
+++ b/plugin_mysql.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_mysql.c,v 1.6 2005/05/08 04:32:44 reinelt Exp $
+/* $Id: plugin_mysql.c,v 1.7 2005/06/06 09:24:07 reinelt Exp $
*
* plugin for execute SQL queries into a MySQL DBSM.
*
@@ -23,6 +23,9 @@
*
*
* $Log: plugin_mysql.c,v $
+ * Revision 1.7 2005/06/06 09:24:07 reinelt
+ * two bugs in plugin_mysql.c fixed
+ *
* Revision 1.6 2005/05/08 04:32:44 reinelt
* CodingStyle added and applied
*
@@ -189,10 +192,10 @@ static void my_MySQLquery(RESULT * result, RESULT * query)
static void my_MySQLstatus(RESULT * result)
{
- char *value = "";
- char *status;
+ const char *value = "";
+ const char *status;
- if (configure_mysql > 0) {
+ if (configure_mysql() > 0) {
mysql_ping(&conex);
status = mysql_stat(&conex);