]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: switch the http state to an enum
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 23:01:53 +0000 (00:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 15:06:22 +0000 (16:06 +0100)
commit3770f23a3af9ccaf33222fef8dad8966c2d73f72
tree90be770b7e64be55f8a63a543ad67d62f851b457
parentc8987b3664a703440ed80a2086d262898873d173
MINOR: http: switch the http state to an enum

This reduces its size which is not reused by anything else. However it
will significantly improve the debugger's output since we'll now get
real state values.

The default case had to be enabled in the parsers because gcc tries
to optimize the switch/case and noticed some values were missing from
the enums and emitted a warning.
include/proto/proto_http.h
include/types/proto_http.h
src/proto_http.c