diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-02 20:00:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-02 20:00:31 +0000 |
commit | fedf9634ae0156c88c2fb9366b0cd54ca0dd230e (patch) | |
tree | 55a26563dabaad1f2acb6a56f2326970bb045251 | |
parent | a9077a809ddf57ca1d515c30bf9a308684b05b48 (diff) | |
download | gnunet-fedf9634ae0156c88c2fb9366b0cd54ca0dd230e.tar.gz gnunet-fedf9634ae0156c88c2fb9366b0cd54ca0dd230e.zip |
cleanup
-rw-r--r-- | src/hostlist/hostlist-client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index a5d345b60..789ae751f 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -1157,17 +1157,12 @@ handler_connect (void *cls, | |||
1157 | struct GNUNET_TIME_Relative latency, | 1157 | struct GNUNET_TIME_Relative latency, |
1158 | uint32_t distance) | 1158 | uint32_t distance) |
1159 | { | 1159 | { |
1160 | unsigned int max = 0 ; | 1160 | GNUNET_assert (stat_connection_count < UINT_MAX); |
1161 | max --; | ||
1162 | |||
1163 | if (stat_connection_count < max) | ||
1164 | { | ||
1165 | stat_connection_count++; | 1161 | stat_connection_count++; |
1166 | GNUNET_STATISTICS_update (stats, | 1162 | GNUNET_STATISTICS_update (stats, |
1167 | gettext_noop ("# active connections"), | 1163 | gettext_noop ("# active connections"), |
1168 | 1, | 1164 | 1, |
1169 | GNUNET_NO); | 1165 | GNUNET_NO); |
1170 | } | ||
1171 | } | 1166 | } |
1172 | 1167 | ||
1173 | 1168 | ||