]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tools: make resolve_sym_name() return a const
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Jul 2020 18:26:04 +0000 (20:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Jul 2020 18:26:04 +0000 (20:26 +0200)
commit0c439d89566f0d51a67f6f129e11a456594cbae2
tree1ba9cb2cfbae58fca0ed240bf31d6c79f9759ce9
parent4c442b08b3bd45174fe36246781b571b2134847c
BUILD: tools: make resolve_sym_name() return a const

Originally it was made to return a void* because some comparisons in the
code where it was used required a lot of casts. But now we don't need
that anymore. And having it non-const breaks the build on NetBSD 9 as
reported in issue #728.

So let's switch to const and adjust debug.c to accomodate this.
include/haproxy/tools.h
src/debug.c
src/tools.c