gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r8430 - GNUnet/src/applications/testing
Date: Sat, 25 Apr 2009 14:47:49 -0600

Author: nevans
Date: 2009-04-25 14:47:49 -0600 (Sat, 25 Apr 2009)
New Revision: 8430

Modified:
   GNUnet/src/applications/testing/remote.c
   GNUnet/src/applications/testing/remotetopologies.c
Log:
fixed compile warnings

Modified: GNUnet/src/applications/testing/remote.c
===================================================================
--- GNUnet/src/applications/testing/remote.c    2009-04-25 16:16:52 UTC (rev 
8429)
+++ GNUnet/src/applications/testing/remote.c    2009-04-25 20:47:49 UTC (rev 
8430)
@@ -52,6 +52,7 @@
   char *cmd;
   int length;
   unsigned int is_local = 0;
+  int unused;
 
   if (strcmp (hostname, "localhost") == 0)
     {
@@ -84,7 +85,7 @@
 #if VERBOSE
   fprintf (stderr, _("cp command is : %s \n"), cmd);
 #endif
-  system (cmd);
+  unused = system (cmd);
 
   GNUNET_free (cmd);
 
@@ -111,7 +112,7 @@
   fprintf (stderr, _("exec command is : %s \n"), cmd);
 #endif
 
-  system (cmd);
+  unused = system (cmd);
   GNUNET_free (cmd);
 
   if (is_local)
@@ -138,7 +139,7 @@
   fprintf (stderr, _("exec command is : %s \n"), cmd);
 #endif
 
-  system (cmd);
+  unused = system (cmd);
 
   GNUNET_free (cmd);
 
@@ -152,6 +153,7 @@
   char *cmd;
   int length;
   unsigned int is_local = 0;
+  int unused;
   FILE *output;
   pid_t pid;
 
@@ -212,7 +214,7 @@
   fprintf (stderr, _("exec command is : %s \n"), cmd);
 #endif
 
-  system (cmd);
+  unused = system (cmd);
 
   GNUNET_free (cmd);
 
@@ -708,7 +710,7 @@
   int ret;
   struct GNUNET_REMOTE_host_list *pos;
   struct GNUNET_REMOTE_friends_list *friend_pos;
-
+  int unused;
   char *cmd;
   int length;
 
@@ -761,17 +763,17 @@
       while (pos != NULL)
         {
           /* Printing out the friends isn't necessary, but it's nice */
-          #if VERBOSE
+#if VERBOSE
           fprintf (stderr, _("Friend list of %s:%d\n"), pos->hostname,
                    pos->port);
-          #endif
+#endif
           temp_friend_handle = fopen ("friend.temp", "wt");
           friend_pos = pos->friend_entries;
           while (friend_pos != NULL)
             {
-            #if VERBOSE
+#if VERBOSE
               fprintf (stderr, "\t%s\n", (const char *) friend_pos->nodeid);
-            #endif
+#endif
               fprintf (temp_friend_handle, "%s\n",
                        (const char *) friend_pos->nodeid);
               friend_pos = friend_pos->next;
@@ -802,12 +804,12 @@
           fprintf (stderr, _("scp command for friend file copy is : %s \n"),
                    cmd);
 #endif
-          system (cmd);
+          unused = system (cmd);
           GNUNET_free (cmd);
           pos = pos->next;
         }
 
-      system ("rm friend.temp");
+      unused = system ("rm friend.temp");
 
       pos = head;
 

Modified: GNUnet/src/applications/testing/remotetopologies.c
===================================================================
--- GNUnet/src/applications/testing/remotetopologies.c  2009-04-25 16:16:52 UTC 
(rev 8429)
+++ GNUnet/src/applications/testing/remotetopologies.c  2009-04-25 20:47:49 UTC 
(rev 8430)
@@ -25,6 +25,7 @@
  */
 #include "remote.h"
 
+#if VERBOSE
 static int
 printInfo (void *data,
            const GNUNET_PeerIdentity *
@@ -40,6 +41,7 @@
            "%s: %llu - %u\n", (const char *) &oth, last_message, bpmFromPeer);
   return GNUNET_OK;
 }
+#endif
 
 int
 GNUNET_REMOTE_connect_erdos_renyi (double probability,
@@ -427,7 +429,7 @@
                                             host);
 
 #if VERBOSE
-      fprintf (stderr, _("Setting config 2 to host %s\n"), host);
+  fprintf (stderr, _("Setting config 2 to host %s\n"), host);
 #endif
 
   if ((GNUNET_OK ==





reply via email to

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