projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-remove async ecc key generation, not needed
[oweals/gnunet.git]
/
src
/
util
/
test_peer.c
diff --git
a/src/util/test_peer.c
b/src/util/test_peer.c
index 9bf44360045993bfb7dc0c7735ccadea2a17cd3b..fa4d31b8db3bd2e319eabd683c2e918b3bdc8a95 100644
(file)
--- a/
src/util/test_peer.c
+++ b/
src/util/test_peer.c
@@
-29,8
+29,6
@@
#define NUMBER_OF_PEERS 10
#define NUMBER_OF_PEERS 10
-#define DEBUG GNUNET_EXTRA_LOGGING
-
/**
* A list of Peer ID's to play with
*/
/**
* A list of Peer ID's to play with
*/
@@
-46,9
+44,8
@@
generatePeerIdList ()
{
GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK,
&pidArr[i].hashPubKey);
{
GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK,
&pidArr[i].hashPubKey);
-#if DEBUG
- printf ("Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i]));
-#endif
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Peer %d: %s\n", i, GNUNET_i2s (&pidArr[i]));
}
}
}
}
@@
-124,7
+121,7
@@
check ()
int
main ()
{
int
main ()
{
- int i;
+
unsigned
int i;
GNUNET_log_setup ("test-peer", "ERROR", NULL);
for (i = 0; i < 1; i++)
GNUNET_log_setup ("test-peer", "ERROR", NULL);
for (i = 0; i < 1; i++)