aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-06-06 09:24:07 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-06-06 09:24:07 +0000
commitd318a5df2f59123b7eb857f8751a2690704917a4 (patch)
tree651a30df2b8cac7353668fe147afefbba7bdb29a
parenta80a39bf80b2b45ef034ce562677a1324616bf89 (diff)
downloadlcd4linux-d318a5df2f59123b7eb857f8751a2690704917a4.tar.gz
[lcd4linux @ 2005-06-06 09:24:07 by reinelt]
two bugs in plugin_mysql.c fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@567 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--lcd4linux.conf.sample4
-rw-r--r--plugin_mysql.c11
2 files changed, 9 insertions, 6 deletions
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample
index cebd16a..722eac6 100644
--- a/lcd4linux.conf.sample
+++ b/lcd4linux.conf.sample
@@ -771,8 +771,8 @@ Display 'T6963-240x64'
#Display 'Image'
#Display 'Trefon'
-Layout 'Default'
-#Layout 'L8x2'
+#Layout 'Default'
+Layout 'L8x2'
#Layout 'L16x2'
#Layout 'L20x2'
#Layout 'Test'
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);