]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use __archive_rb_tree_init() instead of directly initialization.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 29 Apr 2010 08:47:30 +0000 (04:47 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 29 Apr 2010 08:47:30 +0000 (04:47 -0400)
SVN-Revision: 2343

libarchive/archive_write_set_format_iso9660.c

index 7402ccc5d3be129c0ca071a45b87a9b6adda4198..730d70c088ecd233200ad327b197664334ed1fd6 100644 (file)
@@ -4838,8 +4838,7 @@ isoent_new(struct isofile *file)
        isoent->file = file;
        isoent->children.first = NULL;
        isoent->children.last = &(isoent->children.first);
-       isoent->rbtree.rbt_root = NULL;
-       isoent->rbtree.rbt_ops = &rb_ops;
+       __archive_rb_tree_init(&(isoent->rbtree), &rb_ops);
        isoent->subdirs.first = NULL;
        isoent->subdirs.last = &(isoent->subdirs.first);
        isoent->extr_rec_list.first = NULL;
@@ -5583,8 +5582,7 @@ idr_start(struct archive_write *a, struct idr *idr, int cnt, int ffmax,
        r = idr_ensure_poolsize(a, idr, cnt);
        if (r != ARCHIVE_OK)
                return (r);
-       idr->rbtree.rbt_root = NULL;
-       idr->rbtree.rbt_ops = rbt_ops;
+       __archive_rb_tree_init(&(idr->rbtree), rbt_ops);
        idr->wait_list.first = NULL;
        idr->wait_list.last = &(idr->wait_list.first);
        idr->pool_idx = 0;