]> 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 08:50:22 +0000 (10:50 +0200)
commit0e3e59b11f7926a570cfc98d8967b61098c91602
tree84dd436c625fa2b103bc04e9c39858915a03d71a
parente05484f3ec2f2824c88d3a0c68a415111addadb1
[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)
include/common/compat.h
src/ev_poll.c
src/ev_select.c
src/haproxy.c