summaryrefslogtreecommitdiff
path: root/libavutil/tree.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2009-03-31 14:00:46 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-03-31 14:00:46 +0000
commit168fffdf0194989d4c8a01d89b8ef2fbdd90e287 (patch)
tree2edbb511844ca947db2dc38bc3b7332fb117d63d /libavutil/tree.c
parent0448b78b97f26bbab66b972d84f18d06ff68444e (diff)
downloadffmpeg-168fffdf0194989d4c8a01d89b8ef2fbdd90e287.tar.gz
Fix warnings in tree.c test code.
Originally committed as revision 18267 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/tree.c')
-rw-r--r--libavutil/tree.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavutil/tree.c b/libavutil/tree.c
index 22679692b4..e651e65f07 100644
--- a/libavutil/tree.c
+++ b/libavutil/tree.c
@@ -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;