commit | 70af633ebe8627fdf6b448f96c0e457adc93b1d1 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jan 06 20:45:03 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jan 06 20:58:55 2016 +0100 |
tree | 4f79466bad6ec58c0ef612e897f35e63a1aae37d | |
parent | 601360b41d4caffd098edae17145f7d640fab63a [diff] |
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.