diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-18 15:02:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-18 15:02:59 +0000 |
commit | e4794e7e4bc63d2023768e3b1017f19bd0d41c5f (patch) | |
tree | cc3573979a8e410998de3ca3d390ee0547d90faa /src/hostlist | |
parent | 2be168f3924a38f2d4f9071ccf53e6a032e9087d (diff) | |
download | gnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.tar.gz gnunet-e4794e7e4bc63d2023768e3b1017f19bd0d41c5f.zip |
cleaning
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 4 | ||||
-rw-r--r-- | src/hostlist/hostlist-server.c | 15 |
2 files changed, 8 insertions, 11 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index 300a767b5..b0599312c 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -53,12 +53,12 @@ static int provide_hostlist; | |||
53 | /** | 53 | /** |
54 | * Handle to hostlist server's connect handler | 54 | * Handle to hostlist server's connect handler |
55 | */ | 55 | */ |
56 | static GNUNET_CORE_ConnectEventHandler server_ch = NULL; | 56 | static GNUNET_CORE_ConnectEventHandler server_ch; |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * Handle to hostlist server's disconnect handler | 59 | * Handle to hostlist server's disconnect handler |
60 | */ | 60 | */ |
61 | static GNUNET_CORE_DisconnectEventHandler server_dh = NULL; | 61 | static GNUNET_CORE_DisconnectEventHandler server_dh; |
62 | 62 | ||
63 | #endif | 63 | #endif |
64 | 64 | ||
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c index 5d8a07ef2..0726bf3e0 100644 --- a/src/hostlist/hostlist-server.c +++ b/src/hostlist/hostlist-server.c | |||
@@ -110,11 +110,6 @@ struct HostSet | |||
110 | static int advertising; | 110 | static int advertising; |
111 | 111 | ||
112 | /** | 112 | /** |
113 | * How many times was the hostlist advertised? | ||
114 | */ | ||
115 | static uint64_t hostlist_adv_count; | ||
116 | |||
117 | /** | ||
118 | * Buffer for the hostlist address | 113 | * Buffer for the hostlist address |
119 | */ | 114 | */ |
120 | static char * hostlist_uri; | 115 | static char * hostlist_uri; |
@@ -345,6 +340,8 @@ access_handler_callback (void *cls, | |||
345 | static size_t | 340 | static size_t |
346 | adv_transmit_ready ( void *cls, size_t size, void *buf) | 341 | adv_transmit_ready ( void *cls, size_t size, void *buf) |
347 | { | 342 | { |
343 | static uint64_t hostlist_adv_count; | ||
344 | |||
348 | size_t transmission_size; | 345 | size_t transmission_size; |
349 | size_t uri_size; /* Including \0 termination! */ | 346 | size_t uri_size; /* Including \0 termination! */ |
350 | struct GNUNET_MessageHeader header; | 347 | struct GNUNET_MessageHeader header; |
@@ -372,10 +369,10 @@ adv_transmit_ready ( void *cls, size_t size, void *buf) | |||
372 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 369 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
373 | " # Sent advertisement message: %u\n", | 370 | " # Sent advertisement message: %u\n", |
374 | hostlist_adv_count); | 371 | hostlist_adv_count); |
375 | GNUNET_STATISTICS_set (stats, | 372 | GNUNET_STATISTICS_update (stats, |
376 | gettext_noop("# hostlist advertisements send"), | 373 | gettext_noop("# hostlist advertisements send"), |
377 | hostlist_adv_count, | 374 | 1, |
378 | GNUNET_NO); | 375 | GNUNET_NO); |
379 | return transmission_size; | 376 | return transmission_size; |
380 | } | 377 | } |
381 | 378 | ||