diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-07 09:45:47 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-07 09:45:47 +0000 |
commit | af273ca2ab9c572afc13bcb304de2587fd6018f4 (patch) | |
tree | 43494b32da24ab3e5b55b9740022fb215c5fdcb7 /src/hello/gnunet-hello.c | |
parent | 33dddd4cfb71c4c3bb874d542e72cf48f2e4ce65 (diff) | |
download | gnunet-af273ca2ab9c572afc13bcb304de2587fd6018f4.tar.gz gnunet-af273ca2ab9c572afc13bcb304de2587fd6018f4.zip |
some output
Diffstat (limited to 'src/hello/gnunet-hello.c')
-rw-r--r-- | src/hello/gnunet-hello.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c index e4e0978ee..f73d3245a 100644 --- a/src/hello/gnunet-hello.c +++ b/src/hello/gnunet-hello.c | |||
@@ -47,6 +47,8 @@ struct AddContext | |||
47 | size_t ret; | 47 | size_t ret; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | static int address_count; | ||
51 | |||
50 | 52 | ||
51 | /** | 53 | /** |
52 | * Add the given address with infinit expiration to the buffer. | 54 | * Add the given address with infinit expiration to the buffer. |
@@ -69,7 +71,8 @@ add_to_buf (void *cls, const struct GNUNET_HELLO_Address *address, | |||
69 | ac->max); | 71 | ac->max); |
70 | ac->buf += ret; | 72 | ac->buf += ret; |
71 | ac->max -= ret; | 73 | ac->max -= ret; |
72 | ac->ret += ret; | 74 | ac->ret += ret; |
75 | address_count ++; | ||
73 | return GNUNET_OK; | 76 | return GNUNET_OK; |
74 | } | 77 | } |
75 | 78 | ||
@@ -110,6 +113,7 @@ main (int argc, char *argv[]) | |||
110 | struct GNUNET_HELLO_Message *result; | 113 | struct GNUNET_HELLO_Message *result; |
111 | struct GNUNET_CRYPTO_EccPublicKey pk; | 114 | struct GNUNET_CRYPTO_EccPublicKey pk; |
112 | uint64_t fsize; | 115 | uint64_t fsize; |
116 | address_count = 0; | ||
113 | 117 | ||
114 | GNUNET_log_setup ("gnunet-hello", "INFO", NULL); | 118 | GNUNET_log_setup ("gnunet-hello", "INFO", NULL); |
115 | if (argc != 2) | 119 | if (argc != 2) |
@@ -196,6 +200,7 @@ main (int argc, char *argv[]) | |||
196 | } | 200 | } |
197 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh)); | 201 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh)); |
198 | } | 202 | } |
203 | FPRINTF (stderr, _("Modified %u addresses \n"), address_count); | ||
199 | return 0; | 204 | return 0; |
200 | } | 205 | } |
201 | 206 | ||