]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Use ARCHIVE_RB_TREE_FOREACH() macro.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 2 May 2010 04:01:06 +0000 (00:01 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 2 May 2010 04:01:06 +0000 (00:01 -0400)
Temporary code caused SEGFAULTS since __archive_rb_tree_iterate() was fixed.

SVN-Revision: 2355

libarchive/archive_write_set_format_iso9660.c

index 730d70c088ecd233200ad327b197664334ed1fd6..8f187239af3c55d1b36ed8cf59501bf195ff58a8 100644 (file)
@@ -6243,10 +6243,7 @@ isoent_make_sorted_files(struct archive_write *a, struct isoent *isoent,
        }
        isoent->children_sorted = children;
 
-       //ARCHIVE_RB_TREE_FOREACH(rn, &(idr->rbtree)) {
-       for ((rn) = ARCHIVE_RB_TREE_MIN(&(idr->rbtree)); (rn);
-               (rn) = __archive_rb_tree_iterate((&(idr->rbtree)),
-                      (rn), ARCHIVE_RB_DIR_LEFT)) {
+       ARCHIVE_RB_TREE_FOREACH(rn, &(idr->rbtree)) {
                struct idrent *idrent = (struct idrent *)rn;
                *children ++ = idrent->isoent;
        }