gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24313 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r24313 - gnunet/src/ats
Date: Sun, 14 Oct 2012 16:48:08 +0200

Author: grothoff
Date: 2012-10-14 16:48:08 +0200 (Sun, 14 Oct 2012)
New Revision: 24313

Modified:
   gnunet/src/ats/ats_api_scheduling.c
Log:
-patch for ATS to fix compiler warning/error from Markus Teich

Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2012-10-14 13:56:15 UTC (rev 24312)
+++ gnunet/src/ats/ats_api_scheduling.c 2012-10-14 14:48:08 UTC (rev 24313)
@@ -821,7 +821,6 @@
 GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle * sh, const 
struct sockaddr * addr, socklen_t addrlen)
 {
   GNUNET_assert (sh != NULL);
-  struct GNUNET_ATS_Information ats;
   struct ATS_Network * cur = sh->net_head;
   int type = GNUNET_ATS_NET_UNSPECIFIED;
 
@@ -903,9 +902,10 @@
   /* no local network found for this address, default: WAN */
   if (type == GNUNET_ATS_NET_UNSPECIFIED)
     type = GNUNET_ATS_NET_WAN;
-  ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
-  ats.value = htonl (type);
-  return (const struct GNUNET_ATS_Information) ats;
+  const struct GNUNET_ATS_Information ats = {
+    htonl (GNUNET_ATS_NETWORK_TYPE),
+    htonl (type) };
+  return ats;
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]