From 8348086b48af0cbabe4cf2b64992ced6561ea50c Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 24 Jun 2021 16:07:45 +0200 Subject: Remove casual un-const casting in various places Signed-off-by: David Oberhollenzer --- tests/libutil/rbtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libutil') diff --git a/tests/libutil/rbtree.c b/tests/libutil/rbtree.c index 25c9b61..c430d67 100644 --- a/tests/libutil/rbtree.c +++ b/tests/libutil/rbtree.c @@ -12,7 +12,7 @@ static int key_compare(const void *ctx, const void *a, const void *b) { (void)ctx; - return *((sqfs_s32 *)a) - *((sqfs_s32 *)b); + return *((const sqfs_s32 *)a) - *((const sqfs_s32 *)b); } static size_t count_nodes_dfs(rbtree_node_t *n) -- cgit v1.2.3