commit | b8ee894b667f59b312fc44dfab7587ca6df013aa | [log] [tgz] |
---|---|---|
author | Tim Duesterhus <tim@bastelstu.be> | Sat Apr 03 20:39:20 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Apr 08 19:40:59 2021 +0200 |
tree | b75fdbbb67c97e046bde5d1a338f8e649ec1e613 | |
parent | fbc2b79743bcb7c5bed7426b484604e696e9d85a [diff] [blame] |
CLEANUP: htx: Make http_get_stline take a `const struct` Nothing is being modified there, so this can be `const`.
diff --git a/src/http_htx.c b/src/http_htx.c index fcfadce..a7951c0 100644 --- a/src/http_htx.c +++ b/src/http_htx.c
@@ -60,7 +60,7 @@ * if the start-line is undefined (first == -1). Otherwise, it returns the * pointer on the htx_sl structure. */ -struct htx_sl *http_get_stline(struct htx *htx) +struct htx_sl *http_get_stline(const struct htx *htx) { struct htx_blk *blk;