comparison tree.c @ 717:01f68e5fb9af libavutil

Fix warnings in tree.c test code.
author benoit
date Tue, 31 Mar 2009 14:00:46 +0000
parents 3f3e69baaaf8
children 5d344280a1f8
comparison
equal deleted inserted replaced
716:3f3e69baaaf8 717:01f68e5fb9af
165 165
166 static void print(AVTreeNode *t, int depth){ 166 static void print(AVTreeNode *t, int depth){
167 int i; 167 int i;
168 for(i=0; i<depth*4; i++) av_log(NULL, AV_LOG_ERROR, " "); 168 for(i=0; i<depth*4; i++) av_log(NULL, AV_LOG_ERROR, " ");
169 if(t){ 169 if(t){
170 av_log(NULL, AV_LOG_ERROR, "Node %p %2d %4d\n", t, t->state, t->elem); 170 av_log(NULL, AV_LOG_ERROR, "Node %p %2d %p\n", t, t->state, t->elem);
171 print(t->child[0], depth+1); 171 print(t->child[0], depth+1);
172 print(t->child[1], depth+1); 172 print(t->child[1], depth+1);
173 }else 173 }else
174 av_log(NULL, AV_LOG_ERROR, "NULL\n"); 174 av_log(NULL, AV_LOG_ERROR, "NULL\n");
175 } 175 }
176 176
177 static int cmp(const void *a, const void *b){ 177 static int cmp(void *a, const void *b){
178 return a-b; 178 return (uint8_t*)a-(const uint8_t*)b;
179 } 179 }
180 180
181 int main(void){ 181 int main(void){
182 int i,k; 182 int i;
183 void *k;
183 AVTreeNode *root= NULL, *node=NULL; 184 AVTreeNode *root= NULL, *node=NULL;
184 AVLFG prn; 185 AVLFG prn;
185 186
186 av_lfg_init(&prn, 1); 187 av_lfg_init(&prn, 1);
187 188