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.
diff --git a/include/haproxy/tools.h b/include/haproxy/tools.h
index 2b003e4..0cf6053 100644
--- a/include/haproxy/tools.h
+++ b/include/haproxy/tools.h
@@ -996,7 +996,7 @@
 void dump_addr_and_bytes(struct buffer *buf, const char *pfx, const void *addr, int n);
 void dump_hex(struct buffer *out, const char *pfx, const void *buf, int len, int unsafe);
 int may_access(const void *ptr);
-void *resolve_sym_name(struct buffer *buf, const char *pfx, void *addr);
+const void *resolve_sym_name(struct buffer *buf, const char *pfx, void *addr);
 const char *get_exec_path();
 
 #if defined(USE_BACKTRACE)
diff --git a/src/debug.c b/src/debug.c
index e1a07f0..e173f42 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -98,7 +98,7 @@
 		struct buffer bak;
 		void *callers[100];
 		int j, nptrs;
-		void *addr;
+		const void *addr;
 		int dump = 0;
 
 		nptrs = my_backtrace(callers, sizeof(callers)/sizeof(*callers));
diff --git a/src/tools.c b/src/tools.c
index fa92db5..39a4538 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -4426,7 +4426,7 @@
  * The symbol's base address is returned, or NULL when unresolved, in order to
  * allow the caller to match it against known ones.
  */
-void *resolve_sym_name(struct buffer *buf, const char *pfx, void *addr)
+const void *resolve_sym_name(struct buffer *buf, const char *pfx, void *addr)
 {
 	const struct {
 		const void *func;