]> git.ipfire.org Git - thirdparty/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>
Wed, 16 Jul 2008 08:30:44 +0000 (10:30 +0200)
commit177e2b012723ef65c6c7f850df3e6e0cd2cca2b4
tree510b202f3d51e92141afa61d4e7bd646d831101b
parentec6c5df018c2365b7c11a40e183642c3016ef850
[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.
include/common/compat.h
src/ev_poll.c
src/ev_select.c
src/haproxy.c