-fix compile issue due to api change
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Jan 2015 22:43:51 +0000 (22:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Jan 2015 22:43:51 +0000 (22:43 +0000)
src/transport/test_plugin_transport.c

index e9942cff95cec9168aac4e8249a946fc3759e75f..2185478e7b6d4170c7bb7f63a4f67b8c03581bb9 100644 (file)
@@ -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;
 }