[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 16/18: Proper print on add callback, fixed return
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 16/18: Proper print on add callback, fixed return value in .._start, both cases require same handling therefore same return value |
Date: |
Mon, 07 Oct 2019 12:31:12 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 5cc45c7ee6a3ac522e5a1f58010d4efdf4fd102f
Author: Andreas Ebner <address@hidden>
AuthorDate: Sun Oct 6 12:57:52 2019 +0200
Proper print on add callback, fixed return value in .._start, both cases
require same handling therefore same return value
---
src/credential/gnunet-credential.c | 5 +++++
src/credential/gnunet-service-credential.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/credential/gnunet-credential.c
b/src/credential/gnunet-credential.c
index 58f7cf50d..03b017208 100644
--- a/src/credential/gnunet-credential.c
+++ b/src/credential/gnunet-credential.c
@@ -489,6 +489,11 @@ add_continuation (void *cls, int32_t success, const char
*emsg)
struct GNUNET_NAMESTORE_QueueEntry **qe = cls;
*qe = NULL;
+ if(GNUNET_OK == success)
+ printf ("Adding successful.\n");
+ else
+ fprintf (stderr, "Error occured during adding, shutting down.\n");
+
GNUNET_SCHEDULER_shutdown ();
}
diff --git a/src/credential/gnunet-service-credential.c
b/src/credential/gnunet-service-credential.c
index daffc0bb9..4753e8e3b 100644
--- a/src/credential/gnunet-service-credential.c
+++ b/src/credential/gnunet-service-credential.c
@@ -1261,7 +1261,7 @@ delegation_chain_bw_resolution_start (void *cls)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No delegates found\n");
send_lookup_response (vrh);
- return 2;
+ return 1;
}
// Pre-check with vrh->dele_chain_.. if match issuer_key
@@ -1343,7 +1343,7 @@ delegation_chain_fw_resolution_start (void *cls)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No delegations found\n");
send_lookup_response (vrh);
- return 2;
+ return 1;
}
// Pre-check with vrh->dele_chain_.. if match issuer_key
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [gnunet] branch master updated (921b03e4c -> 8db3019c4), gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 16/18: Proper print on add callback, fixed return value in .._start, both cases require same handling therefore same return value,
gnunet <=
- [GNUnet-SVN] [gnunet] 08/18: Unfinished implementation of bidirectional search:, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 11/18: Introduction of intermediate result reporting, removed some stuff, new test:, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 02/18: Implemented delegate sign and store function for GNS entries:, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 15/18: Fixed test, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 01/18: Handle all credential storage via credential service, prepared for subject side storage, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 03/18: Cleanup, additional input checks, renaming, simplification:, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 06/18: Clean up and renaming, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 12/18: Bugfixes, changed test reporting behavior, modified intermediate result reporting:, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 09/18: Bidirectional implementation finished, more complex tests for bidirectional, cleanup fix, todos done:, gnunet, 2019/10/07
- [GNUnet-SVN] [gnunet] 07/18: Removed GNUNET_CREDENTIAL_Credential, new cmdline parameters, formatting:, gnunet, 2019/10/07