gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r26679 - in gnunet/src: ats transport


From: gnunet
Subject: [GNUnet-SVN] r26679 - in gnunet/src: ats transport
Date: Sat, 30 Mar 2013 17:22:05 +0100

Author: grothoff
Date: 2013-03-30 17:22:05 +0100 (Sat, 30 Mar 2013)
New Revision: 26679

Modified:
   gnunet/src/ats/gnunet-service-ats_addresses.c
   gnunet/src/transport/gnunet-service-transport_manipulation.c
Log:
-cleanup

Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c       2013-03-30 16:18:08 UTC 
(rev 26678)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c       2013-03-30 16:22:05 UTC 
(rev 26679)
@@ -252,6 +252,7 @@
   MODE_MLP
 };
 
+
 /**
  * Pending Address suggestion requests
  */
@@ -273,6 +274,7 @@
   struct GNUNET_PeerIdentity id;
 };
 
+
 /**
  * Handle for ATS address component
  */
@@ -378,7 +380,9 @@
 assemble_ats_information (const struct ATS_Address *aa,  struct 
GNUNET_ATS_Information **dest)
 {
   unsigned int ats_count = GNUNET_ATS_PropertyCount - 1;
-  struct GNUNET_ATS_Information *ats = GNUNET_malloc (ats_count * sizeof 
(struct GNUNET_ATS_Information));
+  struct GNUNET_ATS_Information *ats;
+
+  ats = GNUNET_malloc (ats_count * sizeof (struct GNUNET_ATS_Information));
   (*dest) = ats;
 
   ats[0].type = ntohl(GNUNET_ATS_UTILIZATION_UP);
@@ -400,6 +404,7 @@
   return ats_count;
 }
 
+
 /**
  * Disassemble ATS information and update address
  *

Modified: gnunet/src/transport/gnunet-service-transport_manipulation.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_manipulation.c        
2013-03-30 16:18:08 UTC (rev 26678)
+++ gnunet/src/transport/gnunet-service-transport_manipulation.c        
2013-03-30 16:22:05 UTC (rev 26679)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2010,2011 Christian Grothoff (and other contributing authors)
+     (C) 2010-2013 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -496,9 +496,11 @@
        man_handle.peers = GNUNET_CONTAINER_multihashmap_create (10, GNUNET_NO);
 }
 
-int free_tmps (void *cls,
-                                                        const struct 
GNUNET_HashCode * key,
-                                                        void *value)
+
+static int 
+free_tmps (void *cls,
+          const struct GNUNET_HashCode * key,
+          void *value)
 {
        struct DelayQueueEntry *dqe;
        struct DelayQueueEntry *next;




reply via email to

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