gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r16946 - gnunet/src/ats
Date: Mon, 19 Sep 2011 11:38:28 +0200

Author: grothoff
Date: 2011-09-19 11:38:28 +0200 (Mon, 19 Sep 2011)
New Revision: 16946

Modified:
   gnunet/src/ats/ats_api.c
Log:
indentation

Modified: gnunet/src/ats/ats_api.c
===================================================================
--- gnunet/src/ats/ats_api.c    2011-09-19 08:57:17 UTC (rev 16945)
+++ gnunet/src/ats/ats_api.c    2011-09-19 09:38:28 UTC (rev 16946)
@@ -332,16 +332,13 @@
                    "Looking up suggested address for peer `%s'\n",
                    GNUNET_i2s (peer));
 #endif
-  int count = 0;
-
   asc = GNUNET_malloc (sizeof (struct GNUNET_ATS_SuggestionContext));
   asc->cb = cb;
   asc->cb_cls = cb_cls;
   asc->atc = atc;
   asc->target = *peer;
-  count =
-      GNUNET_CONTAINER_multihashmap_get_multiple (atc->peers, 
&peer->hashPubKey,
-                                                  &suggest_address, asc);
+  (void) GNUNET_CONTAINER_multihashmap_get_multiple (atc->peers, 
&peer->hashPubKey,
+                                                    &suggest_address, asc);
 
   if (NULL == asc->cb)
   {
@@ -589,7 +586,7 @@
   ar->plugin_addr = &ar[1];
   memcpy (&ar[1], plugin_addr, plugin_addr_len);
   ar->session = session;
-  ar->plugin_addr_len = plugin_addr_len;
+  ar->plugin_addr_len = plugin_addr_len;  
   GNUNET_assert (ats_count > 0);
   GNUNET_array_grow (ar->ats, ar->ats_count, ats_count);
   memcpy (ar->ats, ats,
@@ -808,13 +805,11 @@
   struct AllocationRecord *ar;
   struct UpdateSessionContext usc;
 
-
 #if DEBUG_ATS
   GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "ats-api",
                    "Updating address for peer `%s', plugin `%s'\n",
                    GNUNET_i2s (peer), plugin_name);
 #endif
-
   ar = create_allocation_record (plugin_name, session, plugin_addr,
                                  plugin_addr_len, ats, ats_count);
   usc.atc = atc;




reply via email to

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