torrentd

simple torrent daemon
git clone git://git.2f30.org/torrentd
Log | Files | Refs | LICENSE

commit f3d95379428c90ae60c3e8bb6dc4594d28e6661b
parent 16145cd3fcbc8a51170f8f06cad2eabcedd3ff4d
Author: sin <sin@2f30.org>
Date:   Thu, 17 Dec 2015 15:46:23 +0000

Simplify newbit()

Diffstat:
Mutil.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/util.c b/util.c @@ -53,9 +53,7 @@ ecalloc(size_t n, size_t size) uint32_t * newbit(int n) { - n += 31; - n /= 32; - return ecalloc(n, 4); + return ecalloc((n + 31) / 32, 4); } void