mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-06 09:35:22 -04:00
CLEANUP: htx: Make http_get_stline take a const struct
Nothing is being modified there, so this can be `const`.
This commit is contained in:
parent
fbc2b79743
commit
b8ee894b66
2 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ extern struct buffer http_err_chunks[HTTP_ERR_SIZE];
|
|||
extern struct http_reply http_err_replies[HTTP_ERR_SIZE];
|
||||
extern struct list http_errors_list;
|
||||
|
||||
struct htx_sl *http_get_stline(struct htx *htx);
|
||||
struct htx_sl *http_get_stline(const struct htx *htx);
|
||||
size_t http_get_hdrs_size(struct htx *htx);
|
||||
int http_find_header(const struct htx *htx, const struct ist name, struct http_hdr_ctx *ctx, int full);
|
||||
int http_find_str_header(const struct htx *htx, const struct ist name, struct http_hdr_ctx *ctx, int full);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ struct conf_errors {
|
|||
* 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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue