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/transport/plugin_transport_tcp.c | |
parent | deb14caf5519f62ca11734a938f7d6024c1242a5 (diff) | |
download | gnunet-a3cde4e15da717c697cefee06f7eb359c5e5485f.tar.gz gnunet-a3cde4e15da717c697cefee06f7eb359c5e5485f.zip |
dce
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 3 |
1 files changed, 0 insertions, 3 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; |