diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-13 15:33:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-13 15:33:30 +0000 |
commit | ee21a783ec2bb31b26a508d12ffad5d8b3c866e9 (patch) | |
tree | 93b4b89131605a3cde1bdd599c94e0eba37ae6f7 /src/transport/plugin_transport_tcp.c | |
parent | 9fa742ef8a7b4299f20292107dbe7a40fc08e2bf (diff) | |
download | gnunet-ee21a783ec2bb31b26a508d12ffad5d8b3c866e9.tar.gz gnunet-ee21a783ec2bb31b26a508d12ffad5d8b3c866e9.zip |
-add dv_get_network to DV API, improve signature to use 'struct Session *' instead of 'void *'
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 85b91ecad..b124fc618 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2394,11 +2394,11 @@ stop_session_timeout (struct Session *s) | |||
2394 | * @return the network type in HBO or GNUNET_SYSERR | 2394 | * @return the network type in HBO or GNUNET_SYSERR |
2395 | */ | 2395 | */ |
2396 | static enum GNUNET_ATS_Network_Type | 2396 | static enum GNUNET_ATS_Network_Type |
2397 | tcp_get_network (void *cls,void *session) | 2397 | tcp_get_network (void *cls, |
2398 | struct Session *session) | ||
2398 | { | 2399 | { |
2399 | struct Session *s = (struct Session *) session; | 2400 | GNUNET_assert (NULL != session); |
2400 | GNUNET_assert (NULL != session); | 2401 | return ntohl (session->ats_address_network_type); |
2401 | return ntohl(s->ats_address_network_type); | ||
2402 | } | 2402 | } |
2403 | 2403 | ||
2404 | 2404 | ||