gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r27820 - gnunet/src/ats-tool


From: gnunet
Subject: [GNUnet-SVN] r27820 - gnunet/src/ats-tool
Date: Tue, 9 Jul 2013 11:27:31 +0200

Author: wachs
Date: 2013-07-09 11:27:31 +0200 (Tue, 09 Jul 2013)
New Revision: 27820

Modified:
   gnunet/src/ats-tool/gnunet-ats.c
Log:
fixing output + additional peer id check


Modified: gnunet/src/ats-tool/gnunet-ats.c
===================================================================
--- gnunet/src/ats-tool/gnunet-ats.c    2013-07-09 09:23:41 UTC (rev 27819)
+++ gnunet/src/ats-tool/gnunet-ats.c    2013-07-09 09:27:31 UTC (rev 27820)
@@ -143,8 +143,8 @@
   }
   if (0 < pending)
     fprintf (stderr, _("%u address resolutions had a timeout\n"), pending);
-
-  fprintf (stderr, _("ATS returned results for %u addresses\n"), results);
+  if (op_list_used || op_list_all)
+       fprintf (stderr, _("ATS returned results for %u addresses\n"), results);
   ret = 0;
 }
 
@@ -423,7 +423,14 @@
                        fprintf (stderr, _("No preference type given!\n"));
                        return;
                }
+               if (NULL == pid_str)
+               {
+                       fprintf (stderr, _("No peer given!\n"));
+                       return;
+               }
 
+
+
         for (c = 0; c<strlen(type_str); c++)
         {
           if (isupper (type_str[c]))




reply via email to

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