gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8911 - GNUnet/src/applications/testing


From: gnunet
Subject: [GNUnet-SVN] r8911 - GNUnet/src/applications/testing
Date: Mon, 31 Aug 2009 11:13:49 -0600

Author: nevans
Date: 2009-08-31 11:13:49 -0600 (Mon, 31 Aug 2009)
New Revision: 8911

Modified:
   GNUnet/src/applications/testing/remote.c
Log:
pre-commit

Modified: GNUnet/src/applications/testing/remote.c
===================================================================
--- GNUnet/src/applications/testing/remote.c    2009-08-31 17:12:58 UTC (rev 
8910)
+++ GNUnet/src/applications/testing/remote.c    2009-08-31 17:13:49 UTC (rev 
8911)
@@ -284,9 +284,9 @@
         }
     }
   if (output != NULL)
-    fclose(output);
+    fclose (output);
   if (tempcmd != NULL)
-    GNUNET_free(tempcmd);
+    GNUNET_free (tempcmd);
   return pid;
 }
 
@@ -1084,13 +1084,11 @@
   GNUNET_free (hostnames);
   GNUNET_free (remote_config_path);
   GNUNET_free (remote_gnunetd_path);
-  GNUNET_free(mysql_user);
-  GNUNET_free(mysql_db);
-  GNUNET_free(mysql_password);
-  GNUNET_free(mysql_server);
-  GNUNET_free(logNModifier_string);
-  if (temp_pid_file != NULL)
-    GNUNET_free(temp_pid_file);
+  GNUNET_free (mysql_user);
+  GNUNET_free (mysql_db);
+  GNUNET_free (mysql_password);
+  GNUNET_free (mysql_server);
+  GNUNET_free (logNModifier_string);
 
   *ret_peers = new_ret_peers;
   return ret;
@@ -1243,7 +1241,8 @@
   ret = GNUNET_OK;
   connected = GNUNET_multi_hash_map_create (number_of_daemons * 3);
 
-  daemon_list = GNUNET_permute(GNUNET_RANDOM_QUALITY_WEAK, number_of_daemons);
+  daemon_list =
+    GNUNET_permute (GNUNET_RANDOM_QUALITY_WEAK, number_of_daemons);
   switch (type)
     {
     case GNUNET_REMOTE_CLIQUE:
@@ -1257,8 +1256,9 @@
       fprintf (stderr, _("Creating small world topology\n"));
 #endif
       ret =
-        GNUNET_REMOTE_connect_small_world_ring (number_of_daemons, 
list_as_array,
-                                           dotOutFile, percentage, 
logNModifier);
+        GNUNET_REMOTE_connect_small_world_ring (number_of_daemons,
+                                                list_as_array, dotOutFile,
+                                                percentage, logNModifier);
       break;
     case GNUNET_REMOTE_RING:
 #if VERBOSE
@@ -1370,7 +1370,7 @@
       connectMutex = GNUNET_mutex_create (GNUNET_YES);
       connectFailures = 0;
       tempThreadCount = 0;
-      for(j = 0; j < number_of_daemons; j++)
+      for (j = 0; j < number_of_daemons; j++)
         {
           if (tempThreadCount > MAX_CONNECT_THREADS)
             {
@@ -1388,18 +1388,19 @@
           fprintf (stdout, "Creating real thread %d...\n", tempThreadCount);
 #endif
           threads[tempThreadCount] =
-            GNUNET_thread_create (&connect_peer_thread, 
list_as_array[daemon_list[j]], 1024 * 16);
+            GNUNET_thread_create (&connect_peer_thread,
+                                  list_as_array[daemon_list[j]], 1024 * 16);
           tempThreadCount++;
 
         }
 
-      GNUNET_thread_sleep(2000 * GNUNET_CRON_MILLISECONDS);
+      GNUNET_thread_sleep (2000 * GNUNET_CRON_MILLISECONDS);
       for (i = 0; i < tempThreadCount; i++)
         {
 #if VERBOSE
           fprintf (stdout, "Joining thread %d...\n", i);
 #endif
-          GNUNET_thread_stop_sleep(threads[i]);
+          GNUNET_thread_stop_sleep (threads[i]);
           GNUNET_thread_join (threads[i], &unusedVoid);
 
         }





reply via email to

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