From 23213073ff4f19ec7b6422060b012b8cc7fce59c Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 21 Dec 2010 13:50:48 +0000 Subject: [PATCH] pre-check --- src/testing/testing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.25.1