summaryrefslogtreecommitdiff
path: root/mysql
diff options
context:
space:
mode:
authorilja <ilja@7b491191-dbf0-0310-aff6-d879d4d69008>2004-04-14 13:20:31 +0000
committerilja <ilja@7b491191-dbf0-0310-aff6-d879d4d69008>2004-04-14 13:20:31 +0000
commit95c074c4023fabc7789139b9226dec1a659efff1 (patch)
tree8467a030da6be7193fad469e357f67c6b331bccc /mysql
parentba325e69308d7f5a875acecd9c5101b93d05a13f (diff)
test-scripts/testimap.py update by Paul J Stevens
db_get_result() (dbpgsql.c, dbmysql.c) now returns an const char*. To make this work, quite some stuff had to be changed (also in mime_readheader()) git-svn-id: https://svn.ic-s.nl/svn/dbmail/trunk/dbmail@1070 7b491191-dbf0-0310-aff6-d879d4d69008
Diffstat (limited to 'mysql')
-rw-r--r--mysql/dbmysql.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mysql/dbmysql.c b/mysql/dbmysql.c
index 615e448e..0420d05b 100644
--- a/mysql/dbmysql.c
+++ b/mysql/dbmysql.c
@@ -46,7 +46,6 @@ const char *TO_DATE = "'%s'";
static MYSQL conn; /**< MySQL database connection */
static MYSQL_RES *res = NULL; /**< MySQL result set */
static MYSQL_RES *msgbuf_res = NULL; /**< MySQL result set for msgbuf */
-static MYSQL_RES *auth_res = NULL; /**< MySQL result set for authentication */
static MYSQL_RES *stored_res = NULL; /**< MySQL result set backup */
static MYSQL_ROW last_row; /**< MySQL result row */
@@ -138,7 +137,7 @@ void db_free_result()
}
-char *db_get_result(unsigned row, unsigned field)
+const char *db_get_result(unsigned row, unsigned field)
{
char *result;