diff options
author | lurchi <lurchi@strangeplace.net> | 2017-08-17 20:32:17 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2017-08-17 20:32:17 +0200 |
commit | 59837ecc5f54c39322cc5afba2dfc9fed154a8fe (patch) | |
tree | e13fa2a67bf8365f6e08726431117f017273b158 /src | |
parent | 16824d5bb7c3699bc6628c1bfabd53e2f3fe5a95 (diff) | |
download | gnunet-59837ecc5f54c39322cc5afba2dfc9fed154a8fe.tar.gz gnunet-59837ecc5f54c39322cc5afba2dfc9fed154a8fe.zip |
increasing length variable is already done by GNUNET_xgrow_ (called by the GNUNET_array_append macro)
Diffstat (limited to 'src')
-rw-r--r-- | src/util/scheduler.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 353b4a669..19ec4efeb 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -1651,7 +1651,6 @@ extract_handles (const struct GNUNET_NETWORK_FDSet *fdset, | |||
1651 | if (NULL != nhandle) | 1651 | if (NULL != nhandle) |
1652 | { | 1652 | { |
1653 | GNUNET_array_append (nhandles, nhandle_count, nhandle); | 1653 | GNUNET_array_append (nhandles, nhandle_count, nhandle); |
1654 | ++nhandle_count; | ||
1655 | } | 1654 | } |
1656 | else | 1655 | else |
1657 | { | 1656 | { |
@@ -1665,7 +1664,6 @@ extract_handles (const struct GNUNET_NETWORK_FDSet *fdset, | |||
1665 | else | 1664 | else |
1666 | { | 1665 | { |
1667 | GNUNET_array_append (fhandles, fhandle_count, fhandle); | 1666 | GNUNET_array_append (fhandles, fhandle_count, fhandle); |
1668 | ++fhandle_count; | ||
1669 | } | 1667 | } |
1670 | } | 1668 | } |
1671 | } | 1669 | } |
@@ -1748,10 +1746,6 @@ GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio, | |||
1748 | unsigned int read_nhandles_len, write_nhandles_len, | 1746 | unsigned int read_nhandles_len, write_nhandles_len, |
1749 | read_fhandles_len, write_fhandles_len; | 1747 | read_fhandles_len, write_fhandles_len; |
1750 | 1748 | ||
1751 | LOG (GNUNET_ERROR_TYPE_WARNING, | ||
1752 | "[%p] GNUNET_SCHDULER_add_select\n", | ||
1753 | sh); | ||
1754 | |||
1755 | if ( (NULL == rs) && | 1749 | if ( (NULL == rs) && |
1756 | (NULL == ws) ) | 1750 | (NULL == ws) ) |
1757 | return GNUNET_SCHEDULER_add_delayed_with_priority (delay, | 1751 | return GNUNET_SCHEDULER_add_delayed_with_priority (delay, |