diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-22 12:26:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-22 12:26:37 +0000 |
commit | b53653520b986083151ebafa66968df41f25447b (patch) | |
tree | fd72cd932d6a2f10bccd941806f293427969652b /src | |
parent | bc8e868c76a54685f85d0668aaeeb843c27c91c1 (diff) | |
download | gnunet-b53653520b986083151ebafa66968df41f25447b.tar.gz gnunet-b53653520b986083151ebafa66968df41f25447b.zip |
dead
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 |
2 files changed, 0 insertions, 4 deletions
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, | |||
1184 | static void | 1184 | static void |
1185 | try_transmission_to_peer (struct NeighbourList *neighbour) | 1185 | try_transmission_to_peer (struct NeighbourList *neighbour) |
1186 | { | 1186 | { |
1187 | struct GNUNET_TIME_Relative min_latency; | ||
1188 | struct ReadyList *rl; | 1187 | struct ReadyList *rl; |
1189 | struct MessageQueue *mq; | 1188 | struct MessageQueue *mq; |
1190 | struct GNUNET_TIME_Relative timeout; | 1189 | struct GNUNET_TIME_Relative timeout; |
1191 | 1190 | ||
1192 | if (neighbour->messages_head == NULL) | 1191 | if (neighbour->messages_head == NULL) |
1193 | return; /* nothing to do */ | 1192 | return; /* nothing to do */ |
1194 | min_latency = GNUNET_TIME_UNIT_FOREVER_REL; | ||
1195 | rl = NULL; | 1193 | rl = NULL; |
1196 | mq = neighbour->messages_head; | 1194 | mq = neighbour->messages_head; |
1197 | /* FIXME: support bi-directional use of TCP */ | 1195 | /* 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) | |||
349 | struct Plugin *plugin = cls; | 349 | struct Plugin *plugin = cls; |
350 | char *buf; | 350 | char *buf; |
351 | struct UDPMessage *msg; | 351 | struct UDPMessage *msg; |
352 | const struct GNUNET_MessageHeader *hdr; | ||
353 | struct GNUNET_PeerIdentity *sender; | 352 | struct GNUNET_PeerIdentity *sender; |
354 | unsigned int buflen; | 353 | unsigned int buflen; |
355 | socklen_t fromlen; | 354 | socklen_t fromlen; |
@@ -413,7 +412,6 @@ udp_plugin_select (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
413 | GNUNET_NETWORK_fdset_set (plugin->rs, udp_sock); | 412 | GNUNET_NETWORK_fdset_set (plugin->rs, udp_sock); |
414 | return; | 413 | return; |
415 | } | 414 | } |
416 | hdr = (const struct GNUNET_MessageHeader *) &msg[1]; | ||
417 | msgbuf = (char *)&msg[1]; | 415 | msgbuf = (char *)&msg[1]; |
418 | sender = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); | 416 | sender = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); |
419 | memcpy (sender, &msg->sender, sizeof (struct GNUNET_PeerIdentity)); | 417 | memcpy (sender, &msg->sender, sizeof (struct GNUNET_PeerIdentity)); |