[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: Fixes.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: Fixes. |
Date: |
Mon, 05 Jun 2017 19:20:40 +0200 |
This is an automated email from the git hooks/post-receive script.
burdges pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8f5ab3268 Fixes.
8f5ab3268 is described below
commit 8f5ab32688caee1758056baa4e52a5a339b931e9
Author: Jeffrey Burdges <address@hidden>
AuthorDate: Mon Jun 5 19:19:37 2017 +0200
Fixes.
I left the ?? comments because someone should probably change
how return values are handled
---
src/psycstore/plugin_psycstore_postgres.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/psycstore/plugin_psycstore_postgres.c
b/src/psycstore/plugin_psycstore_postgres.c
index fe0d53455..ef55736fb 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 ?? */
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: Fixes.,
gnunet <=