From 854a3b80885edeb7c9fa239e8cc0c3b639fac585 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 7 Apr 2009 11:45:17 +0200 Subject: [PATCH] Made bug fix Libisofs_external_filters_selecT unconditional --- libisofs/ecma119.c | 27 --------------------------- libisofs/filters/external.c | 2 +- libisofs/libisofs.h | 8 -------- 3 files changed, 1 insertion(+), 36 deletions(-) diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index aeeb787..0a57317 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -419,11 +419,7 @@ int ecma119_writer_write_vol_desc(IsoImageWriter *writer) } static -#ifdef Libisofs_use_parent_for_dot_doT int write_one_dir(Ecma119Image *t, Ecma119Node *dir, Ecma119Node *parent) -#else -int write_one_dir(Ecma119Image *t, Ecma119Node *dir) -#endif { int ret; uint8_t buffer[BLOCK_SIZE]; @@ -466,11 +462,7 @@ int write_one_dir(Ecma119Image *t, Ecma119Node *dir) } } len = 34 + info.suf_len; -#ifdef Libisofs_use_parent_for_dot_doT write_one_dir_record(t, parent, 1, buf, 1, &info, 0); -#else - write_one_dir_record(t, dir, 1, buf, 1, &info, 0); -#endif buf += len; for (i = 0; i < dir->info.dir->nchildren; i++) { @@ -527,24 +519,13 @@ int write_one_dir(Ecma119Image *t, Ecma119Node *dir) } static -#ifdef Libisofs_use_parent_for_dot_doT - -/* ts A90309 : todo ? : rename parameter "root" to "dir" */ - int write_dirs(Ecma119Image *t, Ecma119Node *root, Ecma119Node *parent) -#else -int write_dirs(Ecma119Image *t, Ecma119Node *root) -#endif { int ret; size_t i; /* write all directory entries for this dir */ -#ifdef Libisofs_use_parent_for_dot_doT ret = write_one_dir(t, root, parent); -#else - ret = write_one_dir(t, root); -#endif if (ret < 0) { return ret; } @@ -553,11 +534,7 @@ int write_dirs(Ecma119Image *t, Ecma119Node *root) for (i = 0; i < root->info.dir->nchildren; i++) { Ecma119Node *child = root->info.dir->children[i]; if (child->type == ECMA119_DIR) { -#ifdef Libisofs_use_parent_for_dot_doT ret = write_dirs(t, child, root); -#else - ret = write_dirs(t, child); -#endif if (ret < 0) { return ret; } @@ -676,11 +653,7 @@ int ecma119_writer_write_data(IsoImageWriter *writer) t = writer->target; /* first of all, we write the directory structure */ -#ifdef Libisofs_use_parent_for_dot_doT ret = write_dirs(t, t->root, t->root); -#else - ret = write_dirs(t, t->root); -#endif if (ret < 0) { return ret; } diff --git a/libisofs/filters/external.c b/libisofs/filters/external.c index 0821668..f565016 100644 --- a/libisofs/filters/external.c +++ b/libisofs/filters/external.c @@ -491,7 +491,7 @@ int extf_stream_read(IsoStream *stream, void *buf, size_t desired) /* No sleeping needs 90 % more CPU and saves 6 % time */ usleep(1000); /* go lazy because the filter is slow */ -#endif /* NIX */ +#endif /* ! Libisofs_external_filters_selecT */ continue; } diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index 7b7747b..63e57e5 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -5035,14 +5035,6 @@ struct burn_source { /* ----------------------------- Bug Fixes ----------------------------- */ -/* Bug Fix : Augment ecma119.c:write_dirs() by parameter parent - and use that one for the second directory entry 001 = "..". - - Everything else seems wrong. -*/ -#define Libisofs_use_parent_for_dot_doT yes - - /* Bug fix : Use correct size of 237 if the ER of RRIP-1.10 shal be written (rather than size 182 of RRIP-1.12)