gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r27260 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r27260 - gnunet/src/testbed
Date: Wed, 22 May 2013 20:35:24 +0200

Author: harsha
Date: 2013-05-22 20:35:24 +0200 (Wed, 22 May 2013)
New Revision: 27260

Modified:
   gnunet/src/testbed/testbed_api_hosts.c
Log:
- fix scanf issues with plibc ignoring '.' before the last '-'


Modified: gnunet/src/testbed/testbed_api_hosts.c
===================================================================
--- gnunet/src/testbed/testbed_api_hosts.c      2013-05-22 14:12:07 UTC (rev 
27259)
+++ gnunet/src/testbed/testbed_api_hosts.c      2013-05-22 18:35:24 UTC (rev 
27260)
@@ -486,13 +486,13 @@
     {
       data[offset] = '\0';
       ret =
-          SSCANF (buf, "address@hidden:%5hd", username,
+          SSCANF (buf, "address@hidden:%5hd", username,
                   hostname, &port);
       if (3 == ret)
       {
-        GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                    "Successfully read host %s, port %d and user %s from 
file\n",
-                    hostname, port, username);
+        LOG (GNUNET_ERROR_TYPE_DEBUG,
+             "Successfully read host %s, port %d and user %s from file\n",
+             hostname, port, username);
         /* We store hosts in a static list; hence we only require the starting
          * host pointer in that list to access the newly created list of hosts 
*/
         if (NULL == starting_host)




reply via email to

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