diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-12-21 13:50:48 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-12-21 13:50:48 +0000 |
commit | 23213073ff4f19ec7b6422060b012b8cc7fce59c (patch) | |
tree | 883a599749670b903287eb03199d010c9b492d11 | |
parent | 7a226ed248616fffd30b13ea9b915acdc6dedc45 (diff) |
pre-check
-rw-r--r-- | src/testing/testing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 0204f311b4..dd4b92a1b7 100644 --- 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 */ |