BUILD: memprof: make the old caller pointer a const in get_prof_bin()

It's a const void* in the target, we can't use a void* in the caller,
this causes a build warning with clang.
This commit is contained in:
Willy Tarreau 2021-05-09 23:18:50 +02:00
parent 23c740ea51
commit 4a75328485
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ static void memprof_free_initial_handler(void *ptr)
static struct memprof_stats *memprof_get_bin(const void *ra) static struct memprof_stats *memprof_get_bin(const void *ra)
{ {
int retries = 16; // up to 16 consecutive entries may be tested. int retries = 16; // up to 16 consecutive entries may be tested.
void *old; const void *old;
unsigned int bin; unsigned int bin;
bin = memprof_hash_ptr(ra); bin = memprof_hash_ptr(ra);