gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13966 - gnunet/src/testing


From: gnunet
Subject: [GNUnet-SVN] r13966 - gnunet/src/testing
Date: Tue, 21 Dec 2010 14:50:48 +0100

Author: nevans
Date: 2010-12-21 14:50:48 +0100 (Tue, 21 Dec 2010)
New Revision: 13966

Modified:
   gnunet/src/testing/testing.c
Log:
pre-check

Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c        2010-12-21 13:49:43 UTC (rev 13965)
+++ gnunet/src/testing/testing.c        2010-12-21 13:50:48 UTC (rev 13966)
@@ -1462,7 +1462,7 @@
 {
   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 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]