dead
authorChristian Grothoff <christian@grothoff.org>
Mon, 22 Feb 2010 12:26:37 +0000 (12:26 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 22 Feb 2010 12:26:37 +0000 (12:26 +0000)
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_udp.c

index 370000cf15dcb04b63627a1de3117727e323a86e..ce8338b1d78f14548d18672ef8be0babc048f087 100644 (file)
@@ -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 */
index be8e2848ce06b749d4a420577d801b8e24b27460..32e22a1503dab402ca1cbba3790c54a82826b54c 100644 (file)
@@ -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));