increasing length variable is already done by GNUNET_xgrow_ (called by the GNUNET_arr...
authorlurchi <lurchi@strangeplace.net>
Thu, 17 Aug 2017 18:32:17 +0000 (20:32 +0200)
committerlurchi <lurchi@strangeplace.net>
Thu, 17 Aug 2017 18:32:17 +0000 (20:32 +0200)
src/util/scheduler.c

index 353b4a6690d22cb238e23adbae6e5d132a9f86fb..19ec4efeb4c7d2279d339a73009270eadb76da63 100644 (file)
@@ -1651,7 +1651,6 @@ extract_handles (const struct GNUNET_NETWORK_FDSet *fdset,
       if (NULL != nhandle)
       {
         GNUNET_array_append (nhandles, nhandle_count, nhandle);
-        ++nhandle_count;
       }
       else
       {
@@ -1665,7 +1664,6 @@ extract_handles (const struct GNUNET_NETWORK_FDSet *fdset,
         else
         {
           GNUNET_array_append (fhandles, fhandle_count, fhandle);
-          ++fhandle_count;
         }
       }
     }
@@ -1748,10 +1746,6 @@ GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio,
   unsigned int read_nhandles_len, write_nhandles_len,
                read_fhandles_len, write_fhandles_len;
 
-  LOG (GNUNET_ERROR_TYPE_WARNING,
-       "[%p] GNUNET_SCHDULER_add_select\n",
-       sh);
-
   if ( (NULL == rs) &&
        (NULL == ws) )
     return GNUNET_SCHEDULER_add_delayed_with_priority (delay,