aboutsummaryrefslogtreecommitdiff
path: root/src/my/my.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/my/my.c')
-rw-r--r--src/my/my.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/my/my.c b/src/my/my.c
index 54b1b8e64..5ef2f18cf 100644
--- a/src/my/my.c
+++ b/src/my/my.c
@@ -27,7 +27,6 @@
27#include <mysql/mysql.h> 27#include <mysql/mysql.h>
28#include "gnunet_my_lib.h" 28#include "gnunet_my_lib.h"
29 29
30#define STRING_SIZE 50
31 30
32/** 31/**
33 * Run a prepared SELECT statement. 32 * Run a prepared SELECT statement.
@@ -94,8 +93,8 @@ GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc,
94 return GNUNET_SYSERR; 93 return GNUNET_SYSERR;
95 } 94 }
96 95
97 GNUNET_MY_cleanup_query (params, 96 GNUNET_MY_cleanup_query (params,
98 qbind); 97 qbind);
99 } 98 }
100 99
101 return GNUNET_OK; 100 return GNUNET_OK;
@@ -111,14 +110,14 @@ GNUNET_MY_exec_prepared (struct GNUNET_MYSQL_Context *mc,
111 */ 110 */
112void 111void
113GNUNET_MY_cleanup_query (struct GNUNET_MY_QueryParam *qp, 112GNUNET_MY_cleanup_query (struct GNUNET_MY_QueryParam *qp,
114 MYSQL_BIND * qbind) 113 MYSQL_BIND *qbind)
115{ 114{
116 unsigned int i; 115 unsigned int i;
117 116
118 for (i=0; NULL != qp[i].conv ;i++) 117 for (i=0; NULL != qp[i].conv ;i++)
119 if(NULL != qp[i].cleaner) 118 if (NULL != qp[i].cleaner)
120 qp[i].cleaner (qp[i].conv_cls, 119 qp[i].cleaner (qp[i].conv_cls,
121 &qbind[i]); 120 &qbind[i]);
122} 121}
123 122
124 123