diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-09-01 13:21:45 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-09-01 13:21:45 +0000 |
commit | c09f6eb6d32f57778cf8f8baf0456cbe7158eb79 (patch) | |
tree | cbc5e0a81cd722d82c41c8ae65ded2c5be326aa7 /src/dv/test_transport_api_dv.c | |
parent | 930871b49ea5ba14a92c6c0ed8e3ecc648da0b22 (diff) | |
download | gnunet-c09f6eb6d32f57778cf8f8baf0456cbe7158eb79.tar.gz gnunet-c09f6eb6d32f57778cf8f8baf0456cbe7158eb79.zip |
klocwork fixes
Diffstat (limited to 'src/dv/test_transport_api_dv.c')
-rw-r--r-- | src/dv/test_transport_api_dv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c index 3e66388fe..244966300 100644 --- a/src/dv/test_transport_api_dv.c +++ b/src/dv/test_transport_api_dv.c | |||
@@ -198,7 +198,6 @@ finish_testing () | |||
198 | struct PeerContext *free_peer_pos; | 198 | struct PeerContext *free_peer_pos; |
199 | struct TestMessageContext *pos; | 199 | struct TestMessageContext *pos; |
200 | struct TestMessageContext *free_pos; | 200 | struct TestMessageContext *free_pos; |
201 | int count; | ||
202 | 201 | ||
203 | #if VERBOSE | 202 | #if VERBOSE |
204 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 203 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -215,7 +214,6 @@ finish_testing () | |||
215 | } | 214 | } |
216 | all_peers = NULL; | 215 | all_peers = NULL; |
217 | 216 | ||
218 | count = 0; | ||
219 | pos = test_messages; | 217 | pos = test_messages; |
220 | while (pos != NULL) | 218 | while (pos != NULL) |
221 | { | 219 | { |
@@ -834,6 +832,7 @@ static void all_connect_handler (void *cls, | |||
834 | if (second_daemon == NULL) | 832 | if (second_daemon == NULL) |
835 | { | 833 | { |
836 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Couldn't find second peer!\n"); | 834 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Couldn't find second peer!\n"); |
835 | GNUNET_free(second_shortname); | ||
837 | return; | 836 | return; |
838 | } | 837 | } |
839 | #if !TEST_ALL | 838 | #if !TEST_ALL |
@@ -1059,6 +1058,7 @@ run (void *cls, | |||
1059 | 1058 | ||
1060 | main_cfg = cfg; | 1059 | main_cfg = cfg; |
1061 | 1060 | ||
1061 | GNUNET_assert(num_peers > 0 && num_peers < (unsigned int)-1); | ||
1062 | peers_left = num_peers; | 1062 | peers_left = num_peers; |
1063 | 1063 | ||
1064 | /* Set up a task to end testing if peer start fails */ | 1064 | /* Set up a task to end testing if peer start fails */ |