diff options
Diffstat (limited to 'src/my/my.c')
-rw-r--r-- | src/my/my.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/my/my.c b/src/my/my.c index 1d78a08cf..d4e72ae7c 100644 --- a/src/my/my.c +++ b/src/my/my.c | |||
@@ -129,7 +129,7 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, | |||
129 | } | 129 | } |
130 | 130 | ||
131 | num_fields = 0; | 131 | num_fields = 0; |
132 | for (i=0;NULL != rs[i].conv;i++) | 132 | for (i=0;NULL != rs[i].pre_conv;i++) |
133 | num_fields += rs[i].num_fields; | 133 | num_fields += rs[i].num_fields; |
134 | 134 | ||
135 | if (mysql_stmt_field_count (stmt) != num_fields) | 135 | if (mysql_stmt_field_count (stmt) != num_fields) |
@@ -145,12 +145,12 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, | |||
145 | 145 | ||
146 | memset (result, 0, sizeof (MYSQL_BIND) * num_fields); | 146 | memset (result, 0, sizeof (MYSQL_BIND) * num_fields); |
147 | field_off = 0; | 147 | field_off = 0; |
148 | for (i=0;NULL != rs[i].conv;i++) | 148 | for (i=0;NULL != rs[i].pre_conv;i++) |
149 | { | 149 | { |
150 | struct GNUNET_MY_ResultSpec *rp = &rs[i]; | 150 | struct GNUNET_MY_ResultSpec *rp = &rs[i]; |
151 | 151 | ||
152 | if (GNUNET_OK != | 152 | if (GNUNET_OK != |
153 | rp->pre_conv (rp->cls, | 153 | rp->pre_conv (rp->conv_cls, |
154 | rp, | 154 | rp, |
155 | stmt, | 155 | stmt, |
156 | field_off, | 156 | field_off, |
@@ -186,13 +186,13 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, | |||
186 | return GNUNET_SYSERR; | 186 | return GNUNET_SYSERR; |
187 | } | 187 | } |
188 | field_off = 0; | 188 | field_off = 0; |
189 | for (i=0;NULL != rs[i].conv;i++) | 189 | for (i=0;NULL != rs[i].post_conv;i++) |
190 | { | 190 | { |
191 | struct GNUNET_MY_ResultSpec *rp = &rs[i]; | 191 | struct GNUNET_MY_ResultSpec *rp = &rs[i]; |
192 | 192 | ||
193 | if (NULL != rp->post_conv) | 193 | if (NULL != rp->post_conv) |
194 | if (GNUNET_OK != | 194 | if (GNUNET_OK != |
195 | rp->post_conv (rp->cls, | 195 | rp->post_conv (rp->conv_cls, |
196 | rp, | 196 | rp, |
197 | stmt, | 197 | stmt, |
198 | field_off, | 198 | field_off, |
@@ -218,12 +218,12 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, | |||
218 | * @param rs reult specification to clean up | 218 | * @param rs reult specification to clean up |
219 | */ | 219 | */ |
220 | void | 220 | void |
221 | GNUNET_MY_cleanup_result (struct GNUNET_PQ_ResultSpec *rs) | 221 | GNUNET_MY_cleanup_result (struct GNUNET_MY_ResultSpec *rs) |
222 | { | 222 | { |
223 | unsigned int i; | 223 | unsigned int i; |
224 | 224 | ||
225 | for (i=0;NULL != rs[i].conv;i++) | 225 | for (i=0;NULL != rs[i].cleaner;i++) |
226 | rs[i].cleaner (rs[i].cls, | 226 | rs[i].cleaner (rs[i].conv_cls, |
227 | &rs[i]); | 227 | &rs[i]); |
228 | } | 228 | } |
229 | 229 | ||