diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-03 20:12:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-03 20:12:09 +0000 |
commit | 5baf12a487a19225962d15e28ba52f10d1d1f7d4 (patch) | |
tree | 59b511a23d38b57ef880e7171a46df6e90562893 /src/peerinfo | |
parent | f7f85255bce69204e68b5fca21afae8ea4d6d352 (diff) |
improving comments and coding style for libgnunethello library
Diffstat (limited to 'src/peerinfo')
-rw-r--r-- | src/peerinfo/gnunet-service-peerinfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index e6ba65e409..31ba3455ef 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c @@ -700,7 +700,7 @@ update_friend_hello (const struct GNUNET_HELLO_Message *hello, { struct GNUNET_HELLO_Message * res; struct GNUNET_HELLO_Message * tmp; - struct GNUNET_CRYPTO_EddsaPublicKey pk; + struct GNUNET_PeerIdentity pid; if (NULL != friend_hello) { @@ -710,12 +710,15 @@ update_friend_hello (const struct GNUNET_HELLO_Message *hello, } if (GNUNET_OK != - GNUNET_HELLO_get_key (hello, &pk)) + GNUNET_HELLO_get_id (hello, &pid)) { GNUNET_break (0); return NULL; } - tmp = GNUNET_HELLO_create (&pk, NULL, NULL, GNUNET_YES); + tmp = GNUNET_HELLO_create (&pid.public_key, + NULL, + NULL, + GNUNET_YES); res = GNUNET_HELLO_merge (hello, tmp); GNUNET_free (tmp); GNUNET_assert (GNUNET_YES == GNUNET_HELLO_is_friend_only (res)); |