From: Christian Grothoff Date: Mon, 22 Feb 2010 12:26:37 +0000 (+0000) Subject: dead X-Git-Tag: initial-import-from-subversion-38251~22636 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b53653520b986083151ebafa66968df41f25447b;p=oweals%2Fgnunet.git dead --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 370000cf1..ce8338b1d 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -1184,14 +1184,12 @@ retry_transmission_task (void *cls, static void try_transmission_to_peer (struct NeighbourList *neighbour) { - struct GNUNET_TIME_Relative min_latency; struct ReadyList *rl; struct MessageQueue *mq; struct GNUNET_TIME_Relative timeout; if (neighbour->messages_head == NULL) return; /* nothing to do */ - min_latency = GNUNET_TIME_UNIT_FOREVER_REL; rl = NULL; mq = neighbour->messages_head; /* FIXME: support bi-directional use of TCP */ diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index be8e2848c..32e22a150 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -349,7 +349,6 @@ udp_plugin_select (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) struct Plugin *plugin = cls; char *buf; struct UDPMessage *msg; - const struct GNUNET_MessageHeader *hdr; struct GNUNET_PeerIdentity *sender; unsigned int buflen; socklen_t fromlen; @@ -413,7 +412,6 @@ udp_plugin_select (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_NETWORK_fdset_set (plugin->rs, udp_sock); return; } - hdr = (const struct GNUNET_MessageHeader *) &msg[1]; msgbuf = (char *)&msg[1]; sender = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); memcpy (sender, &msg->sender, sizeof (struct GNUNET_PeerIdentity));