OSDN Git Service

avutil/tree: add additional const qualifier to the comparator
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sat, 24 Oct 2015 21:53:21 +0000 (17:53 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sun, 25 Oct 2015 00:38:07 +0000 (20:38 -0400)
commit7c8fcbbde3a299096974f9061c8b5be0e526f4c2
tree3321e27447af0c3b29aaba3b98d423d3bb7664bf
parent94f333f9dcfb4ed13d08e17949f7a929a1ece4b1
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 <henrik@gramner.com>
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavfilter/vf_drawtext.c
libavformat/cache.c
libavformat/nut.c
libavformat/nut.h
libavformat/nutdec.c
libavformat/nutenc.c
libavutil/tree.c
libavutil/tree.h