gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16633 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r16633 - gnunet/src/util
Date: Tue, 30 Aug 2011 13:25:55 +0200

Author: grothoff
Date: 2011-08-30 13:25:55 +0200 (Tue, 30 Aug 2011)
New Revision: 16633

Modified:
   gnunet/src/util/peer.c
Log:
minor cleanup

Modified: gnunet/src/util/peer.c
===================================================================
--- gnunet/src/util/peer.c      2011-08-30 11:12:50 UTC (rev 16632)
+++ gnunet/src/util/peer.c      2011-08-30 11:25:55 UTC (rev 16633)
@@ -90,17 +90,13 @@
     return 0;
   off = (long) GNUNET_CONTAINER_multihashmap_get (map, &pid->hashPubKey);
   e = (off == 0) ? NULL : &table[off];
-  if (e != NULL)
-  {
-    GNUNET_assert (e->rc > 0);
-    return e->pid;
-  }
-  else
-  {
+  if (e == NULL)
     return 0;
-  }
+  GNUNET_assert (e->rc > 0);
+  return e->pid;
 }
 
+
 /**
  * Intern an peer identity.  If the identity is already known, its
  * reference counter will be increased by one.




reply via email to

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