changeset 717:01f68e5fb9af libavutil

Fix warnings in tree.c test code.
author benoit
date Tue, 31 Mar 2009 14:00:46 +0000
parents 3f3e69baaaf8
children fa8c9944568f
files tree.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tree.c	Tue Mar 31 09:32:59 2009 +0000
+++ b/tree.c	Tue Mar 31 14:00:46 2009 +0000
@@ -167,19 +167,20 @@
     int i;
     for(i=0; i<depth*4; i++) av_log(NULL, AV_LOG_ERROR, " ");
     if(t){
-        av_log(NULL, AV_LOG_ERROR, "Node %p %2d %4d\n", t, t->state, t->elem);
+        av_log(NULL, AV_LOG_ERROR, "Node %p %2d %p\n", t, t->state, t->elem);
         print(t->child[0], depth+1);
         print(t->child[1], depth+1);
     }else
         av_log(NULL, AV_LOG_ERROR, "NULL\n");
 }
 
-static int cmp(const void *a, const void *b){
-    return a-b;
+static int cmp(void *a, const void *b){
+    return (uint8_t*)a-(const uint8_t*)b;
 }
 
 int main(void){
-    int i,k;
+    int i;
+    void *k;
     AVTreeNode *root= NULL, *node=NULL;
     AVLFG prn;