diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-13 15:18:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-13 15:18:35 +0000 |
commit | 2742cca3d2180b4f615c40609fccf10a806f05c8 (patch) | |
tree | 7a59d0d43951cec4f0edd903f02ead3dbe037a2f /src/util/test_peer.c | |
parent | 832d12049add37805697104b9f8eaae420eef406 (diff) | |
download | gnunet-2742cca3d2180b4f615c40609fccf10a806f05c8.tar.gz gnunet-2742cca3d2180b4f615c40609fccf10a806f05c8.zip |
-cleaning up VERBOSE and check nonsense in util tests
Diffstat (limited to 'src/util/test_peer.c')
-rw-r--r-- | src/util/test_peer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/util/test_peer.c b/src/util/test_peer.c index 2a4840102..fa4d31b8d 100644 --- a/src/util/test_peer.c +++ b/src/util/test_peer.c | |||
@@ -29,8 +29,6 @@ | |||
29 | 29 | ||
30 | #define NUMBER_OF_PEERS 10 | 30 | #define NUMBER_OF_PEERS 10 |
31 | 31 | ||
32 | #define VERBOSE GNUNET_NO | ||
33 | |||
34 | /** | 32 | /** |
35 | * A list of Peer ID's to play with | 33 | * A list of Peer ID's to play with |
36 | */ | 34 | */ |
@@ -46,9 +44,8 @@ generatePeerIdList () | |||
46 | { | 44 | { |
47 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, | 45 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, |
48 | &pidArr[i].hashPubKey); | 46 | &pidArr[i].hashPubKey); |
49 | #if VERBOSE | 47 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
50 | printf ("Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i])); | 48 | "Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i])); |
51 | #endif | ||
52 | } | 49 | } |
53 | } | 50 | } |
54 | 51 | ||
@@ -124,7 +121,7 @@ check () | |||
124 | int | 121 | int |
125 | main () | 122 | main () |
126 | { | 123 | { |
127 | int i; | 124 | unsigned int i; |
128 | 125 | ||
129 | GNUNET_log_setup ("test-peer", "ERROR", NULL); | 126 | GNUNET_log_setup ("test-peer", "ERROR", NULL); |
130 | for (i = 0; i < 1; i++) | 127 | for (i = 0; i < 1; i++) |