MINOR: buffer: make b_getblk_nc() take const pointers
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Jun 2018 13:27:31 +0000 (15:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000 (16:23 +0200)
commit206ba834ef8b7a39608e91d21de4770d8a107e52
treed1db49706c94db7ec626123ccbf7072204bf0ab2
parent5d7d1bbd0ea1c0ee2d642359d8c1357fcbb5ec8a
MINOR: buffer: make b_getblk_nc() take const pointers

Now that there are no more users requiring to modify the buffer anymore,
switch these ones to const char and const buffer. This will make it more
obvious next time send functions are tempted to modify the buffer's output
count. Minor adaptations were necessary at a few call places which were
using char due to the function's previous prototype.
include/common/buf.h
include/proto/channel.h
src/channel.c
src/hlua.c
src/mux_h2.c