diff options
Diffstat (limited to 'src/reclaim/gnunet-did.c')
-rw-r--r-- | src/reclaim/gnunet-did.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/reclaim/gnunet-did.c b/src/reclaim/gnunet-did.c index 25f571520..b5f5f4922 100644 --- a/src/reclaim/gnunet-did.c +++ b/src/reclaim/gnunet-did.c | |||
@@ -223,11 +223,11 @@ struct Event | |||
223 | * @param emgs | 223 | * @param emgs |
224 | */ | 224 | */ |
225 | static void | 225 | static void |
226 | remove_did_document_namestore_cb (void *cls, int32_t success, const char *emgs) | 226 | remove_did_document_namestore_cb (void *cls, enum GNUNET_ErrorCode ec) |
227 | { | 227 | { |
228 | struct Event *event; | 228 | struct Event *event; |
229 | 229 | ||
230 | if (success != GNUNET_SYSERR) | 230 | if (GNUNET_EC_NONE == ec) |
231 | { | 231 | { |
232 | event = (struct Event *) cls; | 232 | event = (struct Event *) cls; |
233 | 233 | ||
@@ -246,10 +246,7 @@ remove_did_document_namestore_cb (void *cls, int32_t success, const char *emgs) | |||
246 | else { | 246 | else { |
247 | printf ("Something went wrong when deleting the DID Document\n"); | 247 | printf ("Something went wrong when deleting the DID Document\n"); |
248 | 248 | ||
249 | if (emgs != NULL) | 249 | printf ("%s\n", GNUNET_ErrorCode_get_hint (ec)); |
250 | { | ||
251 | printf ("%s\n", emgs); | ||
252 | } | ||
253 | 250 | ||
254 | GNUNET_SCHEDULER_add_now (cleanup, NULL); | 251 | GNUNET_SCHEDULER_add_now (cleanup, NULL); |
255 | ret = 0; | 252 | ret = 0; |