- if (addrlen == (2 * sizeof(struct GNUNET_PeerIdentity)))
- {
- peer = (struct GNUNET_PeerIdentity *)addr_buf;
- via = (struct GNUNET_PeerIdentity *)&addr_buf[sizeof(struct GNUNET_PeerIdentity)];
-
- GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &peer_hash);
- peer_hash.encoding[4] = '\0';
- GNUNET_CRYPTO_hash_to_enc (&via->hashPubKey, &via_hash);
- via_hash.encoding[4] = '\0';
- GNUNET_snprintf (return_buffer,
- sizeof (return_buffer),
- "%s:%s",
- &peer_hash,
- &via_hash);
- }
+ if (addrlen == (2 * sizeof (struct GNUNET_PeerIdentity)))
+ {
+ peer = (struct GNUNET_PeerIdentity *) addr_buf;
+ via =
+ (struct GNUNET_PeerIdentity *)
+ &addr_buf[sizeof (struct GNUNET_PeerIdentity)];
+
+ GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &peer_hash);
+ peer_hash.encoding[4] = '\0';
+ GNUNET_CRYPTO_hash_to_enc (&via->hashPubKey, &via_hash);
+ via_hash.encoding[4] = '\0';
+ GNUNET_snprintf (return_buffer, sizeof (return_buffer), "%s:%s", &peer_hash,
+ &via_hash);
+ }