History

Fix warnings in tree.c test code.

Originally committed as revision 18267 to svn://svn.ffmpeg.org/ffmpeg/trunk

Benoit Fouet committed 17 years ago

Commit 168fffd1 parent 0448b781 file · +5 −4Browse files

Unified · Split

libavutil/tree.c+5−4
@@ -167,19 +167,20 @@ static void print(AVTreeNode *t, int depth){ · 166 unmodified lines
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 }else173 }else
174 av_log(NULL, AV_LOG_ERROR, "NULL\n");174 av_log(NULL, AV_LOG_ERROR, "NULL\n");
175}175}
176 176
177static int cmp(const void *a, const void *b){177static int cmp(void *a, const void *b){
178 return a-b;178 return (uint8_t*)a-(const uint8_t*)b;
179}179}
180 180
181int main(void){181int 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t