aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-13 22:44:32 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-13 22:44:32 +0000
commit5b4e092775f462b148fa792db672d0d9cf729614 (patch)
treefa52b66ff81695811a12fc11dd5ed56ea5abe0ad /src/identity/identity_api.c
parentbf7b6c247be0ba01d3d644a919ae06ad45a44af4 (diff)
downloadgnunet-5b4e092775f462b148fa792db672d0d9cf729614.tar.gz
gnunet-5b4e092775f462b148fa792db672d0d9cf729614.zip
-dead code elimination, and docu
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index f4ef81f68..de1ce819e 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -398,13 +398,11 @@ message_handler (void *cls,
398 reschedule_connect (h); 398 reschedule_connect (h);
399 return; 399 return;
400 } 400 }
401 /* Note: we know which service this should be for, so we're not
402 really using 'str' henceforth */
401 GNUNET_CRYPTO_ecc_key_get_public (&sdm->private_key, 403 GNUNET_CRYPTO_ecc_key_get_public (&sdm->private_key,
402 &pub); 404 &pub);
403 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &id); 405 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &id);
404 if (0 == name_len)
405 str = NULL;
406 else
407 str = (const char *) &sdm[1];
408 ego = GNUNET_CONTAINER_multihashmap_get (h->egos, 406 ego = GNUNET_CONTAINER_multihashmap_get (h->egos,
409 &id); 407 &id);
410 if (NULL == ego) 408 if (NULL == ego)
@@ -417,6 +415,7 @@ message_handler (void *cls,
417 GNUNET_CONTAINER_DLL_remove (h->op_head, 415 GNUNET_CONTAINER_DLL_remove (h->op_head,
418 h->op_tail, 416 h->op_tail,
419 op); 417 op);
418 GNUNET_free (ego->name);
420 if (NULL != op->cb) 419 if (NULL != op->cb)
421 op->cb (op->cls, 420 op->cb (op->cls,
422 ego, 421 ego,