From bbd6bc6bd0889627a3bd70e14005664e06d466bc Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Sun, 25 Oct 2015 12:41:48 -0400 Subject: [PATCH] avutil/tree: clean up pointer incompatibility warnings Commit 7c8fcbbde3a299096974f9061c8b5be0e526f4c2 introduced some warnings that get triggered on the test build. This should fix them. Signed-off-by: Ganesh Ajjanagadde --- libavutil/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/tree.c b/libavutil/tree.c index 0a69ea9fc4..2495cdf3c6 100644 --- a/libavutil/tree.c +++ b/libavutil/tree.c @@ -202,9 +202,9 @@ static void print(AVTreeNode *t, int depth) av_log(NULL, AV_LOG_ERROR, "NULL\n"); } -static int cmp(void *a, const void *b) +static int cmp(const void *a, const void *b) { - return (uint8_t *) a - (const uint8_t *) b; + return (const uint8_t *) a - (const uint8_t *) b; } int main(int argc, char **argv)