diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-23 16:20:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-23 16:20:32 +0000 |
commit | c1bac2613d2e7915ab23c3675918aa839514bd97 (patch) | |
tree | ea43b85fbbe3c3126e4ddd8f4b0f4b4d0cf3ab9e /src/regex/gnunet-regex-simulation-profiler.c | |
parent | 0c67d6b5bf7f6378eaf8b0829b88b29f741f4bfe (diff) | |
download | gnunet-c1bac2613d2e7915ab23c3675918aa839514bd97.tar.gz gnunet-c1bac2613d2e7915ab23c3675918aa839514bd97.zip |
adapt to new MYSQL API
Diffstat (limited to 'src/regex/gnunet-regex-simulation-profiler.c')
-rw-r--r-- | src/regex/gnunet-regex-simulation-profiler.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/regex/gnunet-regex-simulation-profiler.c b/src/regex/gnunet-regex-simulation-profiler.c index 0f955f7b5..585d528b7 100644 --- a/src/regex/gnunet-regex-simulation-profiler.c +++ b/src/regex/gnunet-regex-simulation-profiler.c | |||
@@ -264,7 +264,7 @@ free_meter (struct ProgressMeter *meter) | |||
264 | */ | 264 | */ |
265 | static void | 265 | static void |
266 | do_shutdown (void *cls) | 266 | do_shutdown (void *cls) |
267 | { | 267 | { |
268 | if (NULL != mysql_ctx) | 268 | if (NULL != mysql_ctx) |
269 | { | 269 | { |
270 | GNUNET_MYSQL_context_destroy (mysql_ctx); | 270 | GNUNET_MYSQL_context_destroy (mysql_ctx); |
@@ -361,8 +361,7 @@ regex_iterator (void *cls, | |||
361 | rbind[0].is_unsigned = GNUNET_YES; | 361 | rbind[0].is_unsigned = GNUNET_YES; |
362 | 362 | ||
363 | result = | 363 | result = |
364 | GNUNET_MYSQL_statement_run_prepared_select (mysql_ctx, | 364 | GNUNET_MYSQL_statement_run_prepared_select (select_stmt_handle, 1, |
365 | select_stmt_handle, 1, | ||
366 | rbind, &return_ok, NULL, | 365 | rbind, &return_ok, NULL, |
367 | MYSQL_TYPE_BLOB, key, | 366 | MYSQL_TYPE_BLOB, key, |
368 | sizeof (struct | 367 | sizeof (struct |
@@ -388,7 +387,7 @@ regex_iterator (void *cls, | |||
388 | } | 387 | } |
389 | 388 | ||
390 | result = | 389 | result = |
391 | GNUNET_MYSQL_statement_run_prepared (mysql_ctx, stmt_handle, NULL, | 390 | GNUNET_MYSQL_statement_run_prepared (stmt_handle, NULL, |
392 | MYSQL_TYPE_BLOB, key, | 391 | MYSQL_TYPE_BLOB, key, |
393 | sizeof (struct GNUNET_HashCode), | 392 | sizeof (struct GNUNET_HashCode), |
394 | &k_length, MYSQL_TYPE_STRING, | 393 | &k_length, MYSQL_TYPE_STRING, |
@@ -432,7 +431,7 @@ regex_iterator (void *cls, | |||
432 | d_length = 0; | 431 | d_length = 0; |
433 | 432 | ||
434 | result = | 433 | result = |
435 | GNUNET_MYSQL_statement_run_prepared (mysql_ctx, stmt_handle, NULL, | 434 | GNUNET_MYSQL_statement_run_prepared (stmt_handle, NULL, |
436 | MYSQL_TYPE_BLOB, key, | 435 | MYSQL_TYPE_BLOB, key, |
437 | sizeof (struct GNUNET_HashCode), | 436 | sizeof (struct GNUNET_HashCode), |
438 | &k_length, MYSQL_TYPE_STRING, NULL, | 437 | &k_length, MYSQL_TYPE_STRING, NULL, |