aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-14 14:48:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-14 14:48:08 +0000
commit9c41976bd9936bc18d51e787c706aefb86596451 (patch)
treec64dda92e684126f9b1d6a253445a1e40bdfbb1a /src/ats
parent0ade08da2821a2069c0b0282b4ded2b9d2badfd8 (diff)
downloadgnunet-9c41976bd9936bc18d51e787c706aefb86596451.tar.gz
gnunet-9c41976bd9936bc18d51e787c706aefb86596451.zip
-patch for ATS to fix compiler warning/error from Markus Teich
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/ats_api_scheduling.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index db71d1e1e..2c9e2ebba 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -821,7 +821,6 @@ struct GNUNET_ATS_Information
821GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const struct sockaddr * addr, socklen_t addrlen) 821GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const struct sockaddr * addr, socklen_t addrlen)
822{ 822{
823 GNUNET_assert (sh != NULL); 823 GNUNET_assert (sh != NULL);
824 struct GNUNET_ATS_Information ats;
825 struct ATS_Network * cur = sh->net_head; 824 struct ATS_Network * cur = sh->net_head;
826 int type = GNUNET_ATS_NET_UNSPECIFIED; 825 int type = GNUNET_ATS_NET_UNSPECIFIED;
827 826
@@ -903,9 +902,10 @@ GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const stru
903 /* no local network found for this address, default: WAN */ 902 /* no local network found for this address, default: WAN */
904 if (type == GNUNET_ATS_NET_UNSPECIFIED) 903 if (type == GNUNET_ATS_NET_UNSPECIFIED)
905 type = GNUNET_ATS_NET_WAN; 904 type = GNUNET_ATS_NET_WAN;
906 ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); 905 const struct GNUNET_ATS_Information ats = {
907 ats.value = htonl (type); 906 htonl (GNUNET_ATS_NETWORK_TYPE),
908 return (const struct GNUNET_ATS_Information) ats; 907 htonl (type) };
908 return ats;
909} 909}
910 910
911 911