Fixes.
authorJeffrey Burdges <burdges@gnunet.org>
Mon, 5 Jun 2017 17:19:37 +0000 (19:19 +0200)
committerJeffrey Burdges <burdges@gnunet.org>
Mon, 5 Jun 2017 17:19:37 +0000 (19:19 +0200)
I left the ?? comments because someone should probably change
how return values are handled

src/psycstore/plugin_psycstore_postgres.c

index fe0d53455c59447f2981ff7cbe5f44d5018e8c30..ef55736fb3ab295ce5b5e6aec0cf618ea0957c52 100644 (file)
@@ -1318,7 +1318,7 @@ state_get (void *cls, const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
 
 
 /**
- * Closure for #fragment_rows.
+ * Closure for #get_state_cb.
  */
 struct GetStateContext {
   const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key;
@@ -1345,7 +1345,8 @@ struct GetStateContext {
  * @param result the postgres result
  * @param num_result the number of results in @a result
  */
-void get_state (void *cls,
+static void 
+get_state_cb (void *cls,
                 PGresult *res,
                 unsigned int num_results)
 {
@@ -1409,7 +1410,7 @@ state_get_prefix (void *cls, const struct GNUNET_CRYPTO_EddsaPublicKey *channel_
 
   if (0 > GNUNET_PQ_eval_prepared_multi_select (plugin->dbh,
                                                 stmt, params_select,
-                                                &get_state, &gsc))
+                                                &get_state_cb, &gsc))
     return GNUNET_SYSERR;
   return gsc.ret;  /* GNUNET_OK ?? */
 }
@@ -1445,7 +1446,7 @@ state_get_signed (void *cls,
 
   if (0 > GNUNET_PQ_eval_prepared_multi_select (plugin->dbh,
                                                 stmt, params_select,
-                                                &get_state, &gsc))
+                                                &get_state_cb, &gsc))
     return GNUNET_SYSERR;
   return gsc.ret;  /* GNUNET_OK ?? */
 }