From 7c8fcbbde3a299096974f9061c8b5be0e526f4c2 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Sat, 24 Oct 2015 17:53:21 -0400 Subject: avutil/tree: add additional const qualifier to the comparator libc's qsort comparator has a const qualifier on both arguments. This adds a missing const qualifier to exactly match the comparator API. Existing usages of av_tree_find, av_tree_insert are appropriately modified: type signature changes of the comparators, and removal of unnecessary void * casts of function pointers. Reviewed-by: Henrik Gramner Reviewed-by: wm4 Signed-off-by: Ganesh Ajjanagadde --- libavfilter/vf_drawtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/vf_drawtext.c') diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 5c4676e6a4..fc77be4e9c 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -288,7 +288,7 @@ typedef struct Glyph { int bitmap_top; } Glyph; -static int glyph_cmp(void *key, const void *b) +static int glyph_cmp(const void *key, const void *b) { const Glyph *a = key, *bb = b; int64_t diff = (int64_t)a->code - (int64_t)bb->code; -- cgit v1.2.3