]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: use const for read only pointers in ip{cmp,cpy}
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 13 Nov 2023 13:12:04 +0000 (14:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Nov 2023 15:27:55 +0000 (16:27 +0100)
commit24da4d3ee746dfc9a3d6dc7cbff4afeb3554eb48
tree4f5186a688ee1fa7e96c44c966f919a4f22c7729
parent683b2ae013ec5d269cb314bba694812063486c30
MINOR: tools: use const for read only pointers in ip{cmp,cpy}

In this patch we fix the prototype for ipcmp() and ipcpy() functions so
that input pointers that are used exclusively for reads are used as const
pointers. This way, the compiler can safely assume that those variables
won't be altered by the function.
include/haproxy/tools.h
src/tools.c