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
167167 int i;
168168 for(i=0; i<depth*4; i++) av_log(NULL, AV_LOG_ERROR, " ");
169169 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);
171171 print(t->child[0], depth+1);
172172 print(t->child[1], depth+1);
173173 }else
174174 av_log(NULL, AV_LOG_ERROR, "NULL\n");
175175 }
176176
177−static int cmp(const void *a, const void *b){
178− return a-b;
177+static int cmp(void *a, const void *b){
178+ return (uint8_t*)a-(const uint8_t*)b;
179179 }
180180
181181 int main(void){
182− int i,k;
182+ int i;
183+ void *k;
183184 AVTreeNode *root= NULL, *node=NULL;
184185 AVLFG prn;
185186

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