gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r24510 - gnunet/src/ats
Date: Wed, 24 Oct 2012 15:15:38 +0200

Author: grothoff
Date: 2012-10-24 15:15:38 +0200 (Wed, 24 Oct 2012)
New Revision: 24510

Modified:
   gnunet/src/ats/ats_api_scheduling.c
Log:
-simplify

Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2012-10-24 12:56:26 UTC (rev 24509)
+++ gnunet/src/ats/ats_api_scheduling.c 2012-10-24 13:15:38 UTC (rev 24510)
@@ -823,6 +823,7 @@
   GNUNET_assert (sh != NULL);
   struct ATS_Network * cur = sh->net_head;
   int type = GNUNET_ATS_NET_UNSPECIFIED;
+  struct GNUNET_ATS_Information ats;
 
   if  (addr->sa_family == AF_UNIX)
   {
@@ -902,9 +903,8 @@
   /* no local network found for this address, default: WAN */
   if (type == GNUNET_ATS_NET_UNSPECIFIED)
     type = GNUNET_ATS_NET_WAN;
-  const struct GNUNET_ATS_Information ats = {
-    htonl (GNUNET_ATS_NETWORK_TYPE),
-    htonl (type) };
+  ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
+  ats.value = htonl (type);  
   return ats;
 }
 




reply via email to

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