struct ValidationList *pos;
struct ValidationAddress *va;
struct GNUNET_PeerIdentity id;
- struct TransportPongMessage *pong = (struct TransportPongMessage *)message;
+ const struct TransportPongMessage *pong = (const struct TransportPongMessage *)message;
int count = 0;
unsigned int challenge = ntohl(pong->challenge);
pos = pending_validations;
struct PeerAddressList *peer_address;
uint16_t msize;
struct NeighborList *n;
- pong = GNUNET_malloc(sizeof(struct TransportPongMessage));
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
"Receiving `%s' message for `%4s'.\n",
"CONNECT", GNUNET_i2s (&cim->id));
#endif
- if (find_neighbour(h, &cim->id) == NULL)
+ if (NULL == (n = find_neighbour(h, &cim->id)))
{
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
else
{
#if DEBUG_TRANSPORT
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Do know neighbor, scheduling transmission!\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Do know neighbor, scheduling transmission!\n");
#endif
- n = find_neighbour(h, &cim->id);
- n->received_ack = GNUNET_YES;
+ n->received_ack = GNUNET_YES;
if (NULL != n->transmit_handle)
{
#if DEBUG_TRANSPORT