]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: chunk: make chunk_initstr() take a const string
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2016 19:45:03 +0000 (20:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Jan 2016 19:58:55 +0000 (20:58 +0100)
commit70af633ebe8627fdf6b448f96c0e457adc93b1d1
tree4f79466bad6ec58c0ef612e897f35e63a1aae37d
parent601360b41d4caffd098edae17145f7d640fab63a
MINOR: chunk: make chunk_initstr() take a const string

chunk_initstr() prepares a read-only chunk from a string of
fixed length. Thus it must be prepared to accept a read-only
string on the input, otherwise the caller has to force-cast
some const char* and that's not a good idea.
include/common/chunk.h