diff options
-rw-r--r-- | src/testing/testing_group.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 033ab7d5e..1aa3cc134 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c | |||
@@ -2949,7 +2949,6 @@ create_and_copy_blacklist_files(struct GNUNET_TESTING_PeerGroup *pg, | |||
2949 | unsigned int i; | 2949 | unsigned int i; |
2950 | char *pos; | 2950 | char *pos; |
2951 | char *temp_transports; | 2951 | char *temp_transports; |
2952 | int entry_count; | ||
2953 | #if OLD | 2952 | #if OLD |
2954 | struct GNUNET_CRYPTO_HashAsciiEncoded peer_enc; | 2953 | struct GNUNET_CRYPTO_HashAsciiEncoded peer_enc; |
2955 | struct PeerConnection *conn_iter; | 2954 | struct PeerConnection *conn_iter; |
@@ -2987,15 +2986,14 @@ create_and_copy_blacklist_files(struct GNUNET_TESTING_PeerGroup *pg, | |||
2987 | &peer_enc); | 2986 | &peer_enc); |
2988 | fprintf (temp_file_handle, "%s:%s\n", pos, (char *) &peer_enc); | 2987 | fprintf (temp_file_handle, "%s:%s\n", pos, (char *) &peer_enc); |
2989 | conn_iter = conn_iter->next; | 2988 | conn_iter = conn_iter->next; |
2990 | entry_count++; | ||
2991 | } | 2989 | } |
2992 | #else | 2990 | #else |
2993 | blacklist_ctx.transport = pos; | 2991 | blacklist_ctx.transport = pos; |
2994 | entry_count = GNUNET_CONTAINER_multihashmap_iterate (pg-> | 2992 | (void) GNUNET_CONTAINER_multihashmap_iterate (pg-> |
2995 | peers | 2993 | peers |
2996 | [pg_iter].blacklisted_peers, | 2994 | [pg_iter].blacklisted_peers, |
2997 | &blacklist_file_iterator, | 2995 | &blacklist_file_iterator, |
2998 | &blacklist_ctx); | 2996 | &blacklist_ctx); |
2999 | #endif | 2997 | #endif |
3000 | pos = NULL; | 2998 | pos = NULL; |
3001 | } /* At beginning of actual string */ | 2999 | } /* At beginning of actual string */ |