From e1cfc19c182d88c249d97bcd3821e5466c23efaf Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 15 Jul 2014 11:45:48 -0400 Subject: [PATCH] fix incorrect port allocations --- daemon/aux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/aux.h b/daemon/aux.h index 0f5c9f682..b53c7b6df 100644 --- a/daemon/aux.h +++ b/daemon/aux.h @@ -110,7 +110,7 @@ INLINE void ipv6only(int fd, int yn) { setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &yn, sizeof(yn)); } -INLINE int bit_array_isset(unsigned long *name, unsigned int bit) { +INLINE unsigned long bit_array_isset(unsigned long *name, unsigned int bit) { return name[(bit) / (sizeof(long) * 8)] & (1UL << ((bit) % (sizeof(long) * 8))); }