projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a226ed
)
pre-check
author
Nathan S. Evans
<evans@in.tum.de>
Tue, 21 Dec 2010 13:50:48 +0000
(13:50 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Tue, 21 Dec 2010 13:50:48 +0000
(13:50 +0000)
src/testing/testing.c
patch
|
blob
|
history
diff --git
a/src/testing/testing.c
b/src/testing/testing.c
index 0204f311b47f24b563599a17a2e880ba761f1eaa..dd4b92a1b77522f062dfeed2784880adbea62a01 100644
(file)
--- a/
src/testing/testing.c
+++ b/
src/testing/testing.c
@@
-1462,7
+1462,7
@@
connect_notify (void *cls,
{
struct ConnectContext *ctx = cls;
- if (
memcmp (&ctx->d2->id, peer, sizeof (struct GNUNET_PeerIdentity)) == 0
)
+ if (
0 == memcmp (&ctx->d2->id, peer, sizeof (struct GNUNET_PeerIdentity))
)
{
ctx->connected = GNUNET_YES;
ctx->distance = 0; /* FIXME: distance */