aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Burdges <burdges@gnunet.org>2017-06-05 19:19:37 +0200
committerJeffrey Burdges <burdges@gnunet.org>2017-06-05 19:19:37 +0200
commit8f5ab32688caee1758056baa4e52a5a339b931e9 (patch)
treeed9d8c8bfefcded637531603a07b811a876932a7
parent57866fe5f37a8cf2d43f8839a2f2b18e986acb81 (diff)
Fixes.
I left the ?? comments because someone should probably change how return values are handled
-rw-r--r--src/psycstore/plugin_psycstore_postgres.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c
index fe0d53455c..ef55736fb3 100644
--- a/src/psycstore/plugin_psycstore_postgres.c
+++ b/src/psycstore/plugin_psycstore_postgres.c
@@ -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 ?? */
}