mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
CLEANUP: net_helper: fix incorrect const pointers in writev_n16()
It's interesting to see that output pointers p1 and p2 were declared as const, and that thisremained unnoticed due to the explicit casts to u8 when writing to them. The function is currently not used, but better clean it up to avoid surprises.
This commit is contained in:
parent
76d894956f
commit
64e5489864
@ -360,7 +360,7 @@ static inline uint16_t readv_n16(const void *p1, size_t s1, const void *p2)
|
||||
* <p2>. <s1> may be zero and may be larger than the type. The caller is always
|
||||
* responsible for providing enough room.
|
||||
*/
|
||||
static inline void writev_n16(const void *p1, size_t s1, const void *p2, const uint16_t u16)
|
||||
static inline void writev_n16(void *p1, size_t s1, void *p2, const uint16_t u16)
|
||||
{
|
||||
if (unlikely(s1 < 2)) {
|
||||
if (s1 == 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user