summaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-18 22:43:51 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-18 22:43:51 +0000
commit40b9ab5648303db3af346bafa1bc26e7605a20ff (patch)
tree87caf63e8cdf55778652c9143effa90150b61e90 /src/transport/test_plugin_transport.c
parentbb720291e7a5a71e9139865f97025bfa179cd3a3 (diff)
-fix compile issue due to api change
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index e9942cff9..2185478e7 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -467,13 +467,12 @@ env_notify_address (void *cls,
}
-static struct GNUNET_ATS_Information
-env_get_address_type (void *cls, const struct sockaddr *addr, size_t addrlen)
+static enum GNUNET_ATS_Network_Type
+env_get_address_type (void *cls,
+ const struct sockaddr *addr,
+ size_t addrlen)
{
- struct GNUNET_ATS_Information ats;
- ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
- ats.value = htonl (GNUNET_ATS_NET_LOOPBACK);
- return ats;
+ return GNUNET_ATS_NET_LOOPBACK;
}