gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11354 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11354 - gnunet/src/transport
Date: Wed, 12 May 2010 16:30:04 +0200

Author: grothoff
Date: 2010-05-12 16:30:04 +0200 (Wed, 12 May 2010)
New Revision: 11354

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
   gnunet/src/transport/plugin_transport_udp.c
Log:
dce

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2010-05-12 14:22:36 UTC (rev 
11353)
+++ gnunet/src/transport/plugin_transport_tcp.c 2010-05-12 14:30:04 UTC (rev 
11354)
@@ -1075,13 +1075,11 @@
   struct sockaddr_in6 a6;
   const struct IPv4TcpAddress *t4;
   const struct IPv6TcpAddress *t6;
-  int af;
   uint16_t port;
 
   if (addrlen == sizeof (struct IPv6TcpAddress))
     {
       t6 = addr;
-      af = AF_INET6;
       memset (&a6, 0, sizeof (a6));
       a6.sin6_family = AF_INET6;
       a6.sin6_port = t6->t6_port;
@@ -1095,7 +1093,6 @@
   else if (addrlen == sizeof (struct IPv4TcpAddress))
     {
       t4 = addr;
-      af = AF_INET;
       memset (&a4, 0, sizeof (a4));
       a4.sin_family = AF_INET;
       a4.sin_port = t4->t_port;

Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2010-05-12 14:22:36 UTC (rev 
11353)
+++ gnunet/src/transport/plugin_transport_udp.c 2010-05-12 14:30:04 UTC (rev 
11354)
@@ -266,7 +266,6 @@
   struct UDPMessage *message;
   int ssize;
   ssize_t sent;
-  int af;
   const void *sb;
   size_t sbs;
   struct sockaddr_in a4;
@@ -290,7 +289,6 @@
   if (addrlen == sizeof (struct IPv6UdpAddress))
     {
       t6 = addr;
-      af = AF_INET6;
       memset (&a6, 0, sizeof (a6));
 #if HAVE_SOCKADDR_IN_SIN_LEN
       a6.sin6_len = sizeof (a6);
@@ -306,7 +304,6 @@
   else if (addrlen == sizeof (struct IPv4UdpAddress))
     {
       t4 = addr;
-      af = AF_INET;
       memset (&a4, 0, sizeof (a4));
 #if HAVE_SOCKADDR_IN_SIN_LEN
       a4.sin_len = sizeof (a4);
@@ -775,14 +772,12 @@
   struct sockaddr_in6 a6;
   const struct IPv4UdpAddress *t4;
   const struct IPv6UdpAddress *t6;
-  int af;
   size_t sbs;
   uint16_t port;
 
   if (addrlen == sizeof (struct IPv6UdpAddress))
     {
       t6 = addr;
-      af = AF_INET6;
       memset (&a6, 0, sizeof (a6));
       a6.sin6_family = AF_INET6;
       a6.sin6_port = t6->u6_port;
@@ -796,7 +791,6 @@
   else if (addrlen == sizeof (struct IPv4UdpAddress))
     {
       t4 = addr;
-      af = AF_INET;
       memset (&a4, 0, sizeof (a4));
       a4.sin_family = AF_INET;
       a4.sin_port = t4->u_port;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]