mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-11 03:46:13 -04:00
MINOR: h3: mark ncbuf as const on h3_b_dup
h3_b_dup() is used to obtains a ncbuf representation into a struct buffer. ncbuf can thus be marked as a const parameter. This will allows function which already manipulates a const ncbuf to use it.
This commit is contained in:
parent
d9404b464f
commit
c7dd9d6867
1 changed files with 1 additions and 1 deletions
2
src/h3.c
2
src/h3.c
|
|
@ -77,7 +77,7 @@ struct h3s {
|
|||
DECLARE_STATIC_POOL(pool_head_h3s, "h3s", sizeof(struct h3s));
|
||||
|
||||
/* Simple function to duplicate a buffer */
|
||||
static inline struct buffer h3_b_dup(struct ncbuf *b)
|
||||
static inline struct buffer h3_b_dup(const struct ncbuf *b)
|
||||
{
|
||||
return b_make(ncb_orig(b), b->size, b->head, ncb_data(b, 0));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue