summaryrefslogtreecommitdiffstats
path: root/wsutil/wmem/wmem_miscutl.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /wsutil/wmem/wmem_miscutl.c
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--wsutil/wmem/wmem_miscutl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/wmem/wmem_miscutl.c b/wsutil/wmem/wmem_miscutl.c
index 14426447..6e3e2a3a 100644
--- a/wsutil/wmem/wmem_miscutl.c
+++ b/wsutil/wmem/wmem_miscutl.c
@@ -30,13 +30,13 @@ wmem_memdup(wmem_allocator_t *allocator, const void *source, const size_t size)
}
int
-wmem_compare_int(gconstpointer a, gconstpointer b)
+wmem_compare_int(const void *a, const void *b)
{
return GPOINTER_TO_INT(a) - GPOINTER_TO_INT(b);
}
int
-wmem_compare_uint(gconstpointer a, gconstpointer b)
+wmem_compare_uint(const void *a, const void *b)
{
return GPOINTER_TO_UINT(a) > GPOINTER_TO_UINT(b) ? 1 : (GPOINTER_TO_UINT(a) < GPOINTER_TO_UINT(b) ? -1 : 0);
}