]> git.kaiwu.me - haproxy.git/commit
[CLEANUP] remove dependency on obsolete INTBITS macro
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Jul 2008 22:36:31 +0000 (00:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Sep 2008 09:13:07 +0000 (11:13 +0200)
commit4e1756086def59e05a3c56fd2f57eb990038a071
tree0d3b4c3734fd6f41f81082728cfc64273719ea98
parentd8d788c8cf24b455f6495f59e6a56e7e862b7cdc
[CLEANUP] remove dependency on obsolete INTBITS macro

The INTBITS macro was found to be already defined on some platforms,
and to equal 32 (while INTBITS was 5 here). Due to pure luck, there
was no declaration conflict, but it's nonetheless a problem to fix.

Looking at the code showed that this macro was only used for left
shifts and nothing else anymore. So the replacement is obvious. The
new macro, BITS_PER_INT is more obviously correct.
(cherry picked from commit 177e2b012723ef65c6c7f850df3e6e0cd2cca2b4)
(cherry picked from commit 0e3e59b11f7926a570cfc98d8967b61098c91602)
include/common/compat.h
src/ev_poll.c
src/ev_select.c
src/haproxy.c