From 5baf12a487a19225962d15e28ba52f10d1d1f7d4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 3 Oct 2015 20:12:09 +0000 Subject: improving comments and coding style for libgnunethello library --- src/peerinfo/gnunet-service-peerinfo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/peerinfo/gnunet-service-peerinfo.c') diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index e6ba65e40..31ba3455e 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)); -- cgit v1.2.3