# HG changeset patch # User benoit # Date 1238508046 0 # Node ID 01f68e5fb9af2a53c32f43b2b513ed5abba05e31 # Parent 3f3e69baaaf872a169f5b72415cde6c85044d817 Fix warnings in tree.c test code. diff -r 3f3e69baaaf8 -r 01f68e5fb9af tree.c --- 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; istate, 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;