projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5ef97
)
minor cleanup
author
Christian Grothoff
<christian@grothoff.org>
Tue, 30 Aug 2011 11:25:55 +0000
(11:25 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 30 Aug 2011 11:25:55 +0000
(11:25 +0000)
src/util/peer.c
patch
|
blob
|
history
diff --git
a/src/util/peer.c
b/src/util/peer.c
index 1491211c5e7f2c2a2fca3c550c44b662d4d11673..39d11883d05ba5f00d9f75e15c4446155e0d832a 100644
(file)
--- a/
src/util/peer.c
+++ b/
src/util/peer.c
@@
-90,17
+90,13
@@
GNUNET_PEER_search (const struct GNUNET_PeerIdentity *pid)
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.