adapt to new MYSQL API
authorChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2016 16:20:32 +0000 (16:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2016 16:20:32 +0000 (16:20 +0000)
src/regex/gnunet-regex-simulation-profiler.c

index 0f955f7b5cc5ce00af782a2e56237a82e876667b..585d528b76e2ec5a4a2ae6e088a5d382f279d1b3 100644 (file)
@@ -264,7 +264,7 @@ free_meter (struct ProgressMeter *meter)
  */
 static void
 do_shutdown (void *cls)
-{ 
+{
   if (NULL != mysql_ctx)
   {
     GNUNET_MYSQL_context_destroy (mysql_ctx);
@@ -361,8 +361,7 @@ regex_iterator (void *cls,
     rbind[0].is_unsigned = GNUNET_YES;
 
     result =
-        GNUNET_MYSQL_statement_run_prepared_select (mysql_ctx,
-                                                    select_stmt_handle, 1,
+        GNUNET_MYSQL_statement_run_prepared_select (select_stmt_handle, 1,
                                                     rbind, &return_ok, NULL,
                                                     MYSQL_TYPE_BLOB, key,
                                                     sizeof (struct
@@ -388,7 +387,7 @@ regex_iterator (void *cls,
     }
 
     result =
-        GNUNET_MYSQL_statement_run_prepared (mysql_ctx, stmt_handle, NULL,
+        GNUNET_MYSQL_statement_run_prepared (stmt_handle, NULL,
                                              MYSQL_TYPE_BLOB, key,
                                              sizeof (struct GNUNET_HashCode),
                                              &k_length, MYSQL_TYPE_STRING,
@@ -432,7 +431,7 @@ regex_iterator (void *cls,
     d_length = 0;
 
     result =
-        GNUNET_MYSQL_statement_run_prepared (mysql_ctx, stmt_handle, NULL,
+        GNUNET_MYSQL_statement_run_prepared (stmt_handle, NULL,
                                              MYSQL_TYPE_BLOB, key,
                                              sizeof (struct GNUNET_HashCode),
                                              &k_length, MYSQL_TYPE_STRING, NULL,