gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28434 - gnunet/src/hello


From: gnunet
Subject: [GNUnet-SVN] r28434 - gnunet/src/hello
Date: Wed, 7 Aug 2013 11:45:47 +0200

Author: wachs
Date: 2013-08-07 11:45:47 +0200 (Wed, 07 Aug 2013)
New Revision: 28434

Modified:
   gnunet/src/hello/gnunet-hello.c
Log:
some output


Modified: gnunet/src/hello/gnunet-hello.c
===================================================================
--- gnunet/src/hello/gnunet-hello.c     2013-08-07 09:05:08 UTC (rev 28433)
+++ gnunet/src/hello/gnunet-hello.c     2013-08-07 09:45:47 UTC (rev 28434)
@@ -47,7 +47,9 @@
   size_t ret;
 };
 
+static int address_count;
 
+
 /**
  * Add the given address with infinit expiration to the buffer.
  *
@@ -69,7 +71,8 @@
                                  ac->max);
   ac->buf += ret;
   ac->max -= ret;
-  ac->ret += ret;  
+  ac->ret += ret;
+  address_count ++;
   return GNUNET_OK;
 }
 
@@ -110,6 +113,7 @@
   struct GNUNET_HELLO_Message *result;
   struct GNUNET_CRYPTO_EccPublicKey pk;
   uint64_t fsize;
+  address_count = 0;
 
   GNUNET_log_setup ("gnunet-hello", "INFO", NULL);
   if (argc != 2)
@@ -196,6 +200,7 @@
      }
     GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh));
   }
+  FPRINTF (stderr, _("Modified %u addresses \n"), address_count);
   return 0;
 }
 




reply via email to

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