From 40b9ab5648303db3af346bafa1bc26e7605a20ff Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 18 Jan 2015 22:43:51 +0000 Subject: [PATCH] -fix compile issue due to api change --- src/transport/test_plugin_transport.c | 11 +++++------ 1 file 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; } -- 2.25.1