aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-02-22 12:26:37 +0000
committerChristian Grothoff <christian@grothoff.org>2010-02-22 12:26:37 +0000
commitb53653520b986083151ebafa66968df41f25447b (patch)
treefd72cd932d6a2f10bccd941806f293427969652b /src/transport/plugin_transport_udp.c
parentbc8e868c76a54685f85d0668aaeeb843c27c91c1 (diff)
downloadgnunet-b53653520b986083151ebafa66968df41f25447b.tar.gz
gnunet-b53653520b986083151ebafa66968df41f25447b.zip
dead
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c2
1 files changed, 0 insertions, 2 deletions
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));