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:
a9077a8
)
cleanup
author
Christian Grothoff
<christian@grothoff.org>
Tue, 2 Nov 2010 20:00:31 +0000
(20:00 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 2 Nov 2010 20:00:31 +0000
(20:00 +0000)
src/hostlist/hostlist-client.c
patch
|
blob
|
history
diff --git
a/src/hostlist/hostlist-client.c
b/src/hostlist/hostlist-client.c
index a5d345b605df447db8a2efe07254b3cb81ba73e6..789ae751f28a7fbc32a630045e8730ce49d53786 100644
(file)
--- a/
src/hostlist/hostlist-client.c
+++ b/
src/hostlist/hostlist-client.c
@@
-1157,17
+1157,12
@@
handler_connect (void *cls,
struct GNUNET_TIME_Relative latency,
uint32_t distance)
{
- unsigned int max = 0 ;
- max --;
-
- if (stat_connection_count < max)
- {
+ GNUNET_assert (stat_connection_count < UINT_MAX);
stat_connection_count++;
GNUNET_STATISTICS_update (stats,
gettext_noop ("# active connections"),
1,
GNUNET_NO);
- }
}