diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-12 14:30:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-12 14:30:04 +0000 |
commit | a3cde4e15da717c697cefee06f7eb359c5e5485f (patch) | |
tree | 215885b34dbb0c36d4f7189372bf57bc1891fc07 /src | |
parent | deb14caf5519f62ca11734a938f7d6024c1242a5 (diff) | |
download | gnunet-a3cde4e15da717c697cefee06f7eb359c5e5485f.tar.gz gnunet-a3cde4e15da717c697cefee06f7eb359c5e5485f.zip |
dce
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 3 | ||||
-rw-r--r-- | src/transport/plugin_transport_udp.c | 6 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index bc1312b61..fe0f18597 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1075,13 +1075,11 @@ tcp_plugin_address_pretty_printer (void *cls, | |||
1075 | struct sockaddr_in6 a6; | 1075 | struct sockaddr_in6 a6; |
1076 | const struct IPv4TcpAddress *t4; | 1076 | const struct IPv4TcpAddress *t4; |
1077 | const struct IPv6TcpAddress *t6; | 1077 | const struct IPv6TcpAddress *t6; |
1078 | int af; | ||
1079 | uint16_t port; | 1078 | uint16_t port; |
1080 | 1079 | ||
1081 | if (addrlen == sizeof (struct IPv6TcpAddress)) | 1080 | if (addrlen == sizeof (struct IPv6TcpAddress)) |
1082 | { | 1081 | { |
1083 | t6 = addr; | 1082 | t6 = addr; |
1084 | af = AF_INET6; | ||
1085 | memset (&a6, 0, sizeof (a6)); | 1083 | memset (&a6, 0, sizeof (a6)); |
1086 | a6.sin6_family = AF_INET6; | 1084 | a6.sin6_family = AF_INET6; |
1087 | a6.sin6_port = t6->t6_port; | 1085 | a6.sin6_port = t6->t6_port; |
@@ -1095,7 +1093,6 @@ tcp_plugin_address_pretty_printer (void *cls, | |||
1095 | else if (addrlen == sizeof (struct IPv4TcpAddress)) | 1093 | else if (addrlen == sizeof (struct IPv4TcpAddress)) |
1096 | { | 1094 | { |
1097 | t4 = addr; | 1095 | t4 = addr; |
1098 | af = AF_INET; | ||
1099 | memset (&a4, 0, sizeof (a4)); | 1096 | memset (&a4, 0, sizeof (a4)); |
1100 | a4.sin_family = AF_INET; | 1097 | a4.sin_family = AF_INET; |
1101 | a4.sin_port = t4->t_port; | 1098 | a4.sin_port = t4->t_port; |
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 5a5492858..e86431ca2 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -266,7 +266,6 @@ udp_plugin_send (void *cls, | |||
266 | struct UDPMessage *message; | 266 | struct UDPMessage *message; |
267 | int ssize; | 267 | int ssize; |
268 | ssize_t sent; | 268 | ssize_t sent; |
269 | int af; | ||
270 | const void *sb; | 269 | const void *sb; |
271 | size_t sbs; | 270 | size_t sbs; |
272 | struct sockaddr_in a4; | 271 | struct sockaddr_in a4; |
@@ -290,7 +289,6 @@ udp_plugin_send (void *cls, | |||
290 | if (addrlen == sizeof (struct IPv6UdpAddress)) | 289 | if (addrlen == sizeof (struct IPv6UdpAddress)) |
291 | { | 290 | { |
292 | t6 = addr; | 291 | t6 = addr; |
293 | af = AF_INET6; | ||
294 | memset (&a6, 0, sizeof (a6)); | 292 | memset (&a6, 0, sizeof (a6)); |
295 | #if HAVE_SOCKADDR_IN_SIN_LEN | 293 | #if HAVE_SOCKADDR_IN_SIN_LEN |
296 | a6.sin6_len = sizeof (a6); | 294 | a6.sin6_len = sizeof (a6); |
@@ -306,7 +304,6 @@ udp_plugin_send (void *cls, | |||
306 | else if (addrlen == sizeof (struct IPv4UdpAddress)) | 304 | else if (addrlen == sizeof (struct IPv4UdpAddress)) |
307 | { | 305 | { |
308 | t4 = addr; | 306 | t4 = addr; |
309 | af = AF_INET; | ||
310 | memset (&a4, 0, sizeof (a4)); | 307 | memset (&a4, 0, sizeof (a4)); |
311 | #if HAVE_SOCKADDR_IN_SIN_LEN | 308 | #if HAVE_SOCKADDR_IN_SIN_LEN |
312 | a4.sin_len = sizeof (a4); | 309 | a4.sin_len = sizeof (a4); |
@@ -775,14 +772,12 @@ udp_plugin_address_pretty_printer (void *cls, | |||
775 | struct sockaddr_in6 a6; | 772 | struct sockaddr_in6 a6; |
776 | const struct IPv4UdpAddress *t4; | 773 | const struct IPv4UdpAddress *t4; |
777 | const struct IPv6UdpAddress *t6; | 774 | const struct IPv6UdpAddress *t6; |
778 | int af; | ||
779 | size_t sbs; | 775 | size_t sbs; |
780 | uint16_t port; | 776 | uint16_t port; |
781 | 777 | ||
782 | if (addrlen == sizeof (struct IPv6UdpAddress)) | 778 | if (addrlen == sizeof (struct IPv6UdpAddress)) |
783 | { | 779 | { |
784 | t6 = addr; | 780 | t6 = addr; |
785 | af = AF_INET6; | ||
786 | memset (&a6, 0, sizeof (a6)); | 781 | memset (&a6, 0, sizeof (a6)); |
787 | a6.sin6_family = AF_INET6; | 782 | a6.sin6_family = AF_INET6; |
788 | a6.sin6_port = t6->u6_port; | 783 | a6.sin6_port = t6->u6_port; |
@@ -796,7 +791,6 @@ udp_plugin_address_pretty_printer (void *cls, | |||
796 | else if (addrlen == sizeof (struct IPv4UdpAddress)) | 791 | else if (addrlen == sizeof (struct IPv4UdpAddress)) |
797 | { | 792 | { |
798 | t4 = addr; | 793 | t4 = addr; |
799 | af = AF_INET; | ||
800 | memset (&a4, 0, sizeof (a4)); | 794 | memset (&a4, 0, sizeof (a4)); |
801 | a4.sin_family = AF_INET; | 795 | a4.sin_family = AF_INET; |
802 | a4.sin_port = t4->u_port; | 796 | a4.sin_port = t4->u_port; |