From: Nathan S. Evans Date: Tue, 21 Dec 2010 13:50:48 +0000 (+0000) Subject: pre-check X-Git-Tag: initial-import-from-subversion-38251~19486 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23213073ff4f19ec7b6422060b012b8cc7fce59c;p=oweals%2Fgnunet.git pre-check --- diff --git a/src/testing/testing.c b/src/testing/testing.c index 0204f311b..dd4b92a1b 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 */