projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c740e
)
BUILD: memprof: make the old caller pointer a const in get_prof_bin()
author
Willy Tarreau
<w@1wt.eu>
Sun, 9 May 2021 21:18:50 +0000
(23:18 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Sun, 9 May 2021 21:18:50 +0000
(23:18 +0200)
It's a const void* in the target, we can't use a void* in the caller,
this causes a build warning with clang.
src/activity.c
patch
|
blob
|
history
diff --git
a/src/activity.c
b/src/activity.c
index
2080fd6
..
179ff1f
100644
(file)
--- a/
src/activity.c
+++ b/
src/activity.c
@@
-187,7
+187,7
@@
static void memprof_free_initial_handler(void *ptr)
static struct memprof_stats *memprof_get_bin(const void *ra)
{
int retries = 16; // up to 16 consecutive entries may be tested.
- void *old;
+ const void *old;
unsigned int bin;
bin = memprof_hash_ptr(ra);