cleanup
authorChristian Grothoff <christian@grothoff.org>
Tue, 2 Nov 2010 20:00:31 +0000 (20:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 2 Nov 2010 20:00:31 +0000 (20:00 +0000)
src/hostlist/hostlist-client.c

index a5d345b605df447db8a2efe07254b3cb81ba73e6..789ae751f28a7fbc32a630045e8730ce49d53786 100644 (file)
@@ -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);
-  }
 }