summaryrefslogtreecommitdiffabout
path: root/src/mysql.c
Side-by-side diff
Diffstat (limited to 'src/mysql.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/mysql.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mysql.c b/src/mysql.c
index 1310212..dcc1847 100644
--- a/src/mysql.c
+++ b/src/mysql.c
@@ -23,9 +23,3 @@
-static SCM
-s_mysql_mark(struct sql_connect *conn)
-{
- return SCM_BOOL_F;
-}
-
-static scm_sizet
+static size_t
s_mysql_free(struct sql_connect *conn)
@@ -33,6 +27,5 @@ s_mysql_free(struct sql_connect *conn)
MYSQL *mysql = (MYSQL*) conn->data;
- if (!mysql)
- return 0;
- mysql_close(mysql);
- return sizeof(MYSQL);
+ if (mysql)
+ mysql_close(mysql);
+ return 0;
}
@@ -40,3 +33,3 @@ s_mysql_free(struct sql_connect *conn)
static SCM
-s_mysql_connect (SCM parmlist, const char *func_name)
+s_mysql_connect(SCM parmlist, const char *func_name)
{
@@ -227,3 +220,3 @@ struct sql_iface mysql_iface = {
"mysql",
- s_mysql_mark,
+ NULL, /* mark */
s_mysql_free,

Return to:

Send suggestions and report system problems to the System administrator.