Browse Source

Fix warnings in tree.c test code.

Originally committed as revision 18267 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Benoit Fouet 16 years ago
parent
commit
168fffdf01
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      libavutil/tree.c

+ 5
- 4
libavutil/tree.c View File

@@ -167,19 +167,20 @@ static void print(AVTreeNode *t, int depth){
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;



Loading…
Cancel
Save