- typo, comparison order
authorBart Polot <bart@net.in.tum.de>
Wed, 30 Mar 2016 09:17:47 +0000 (09:17 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 30 Mar 2016 09:17:47 +0000 (09:17 +0000)
src/cadet/gnunet-service-cadet_connection.c

index 2fe0c277b40058cf9c981511b81d3467491a988a..35b0585eabb5412e501c0877f0833f4618f8823c 100644 (file)
@@ -1652,7 +1652,7 @@ connection_reset_timeout (struct CadetConnection *c, int fwd)
 /**
  * Iterator to compare each connection's path with the path of a new connection.
  *
- * If the connection conincides, the c member of path is set to the connection
+ * If the connection coincides, the c member of path is set to the connection
  * and the destroy flag of the connection is set.
  *
  * @param cls Closure (new path).
@@ -1668,9 +1668,9 @@ check_path (void *cls, struct CadetConnection *c)
        GCC_2s (c), c, c->path->length);
 
   if (c != new_conn
-      && c->destroy == GNUNET_NO
-      && c->state != CADET_CONNECTION_BROKEN
-      && c->state != CADET_CONNECTION_DESTROYED
+      && GNUNET_NO == c->destroy
+      && CADET_CONNECTION_BROKEN != c->state
+      && CADET_CONNECTION_DESTROYED != c->state
       && path_equivalent (path, c->path))
   {
     new_conn->destroy = GNUNET_YES;