pre-check
authorNathan S. Evans <evans@in.tum.de>
Tue, 21 Dec 2010 13:50:48 +0000 (13:50 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 21 Dec 2010 13:50:48 +0000 (13:50 +0000)
src/testing/testing.c

index 0204f311b47f24b563599a17a2e880ba761f1eaa..dd4b92a1b77522f062dfeed2784880adbea62a01 100644 (file)
@@ -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 */