From 98a6db7f7f91e4baa46d65c4ff4d410a4e1bf24c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 7 Apr 2009 12:17:52 +0200 Subject: [PATCH] Made comparison of file sizes in iso_file_src_cmp() unconditional. --- libisofs/filesrc.c | 18 ------------------ libisofs/libisofs.h | 6 ------ 2 files changed, 24 deletions(-) diff --git a/libisofs/filesrc.c b/libisofs/filesrc.c index fdffd28..b66c41d 100644 --- a/libisofs/filesrc.c +++ b/libisofs/filesrc.c @@ -23,13 +23,7 @@ int iso_file_src_cmp(const void *n1, const void *n2) unsigned int fs_id1, fs_id2; dev_t dev_id1, dev_id2; ino_t ino_id1, ino_id2; - -#ifdef Libisofs_file_src_cmp_sizE - off_t size1, size2; - -#endif /* Libisofs_file_src_cmp_sizE */ - f1 = (const IsoFileSrc *)n1; f2 = (const IsoFileSrc *)n2; @@ -53,9 +47,6 @@ int iso_file_src_cmp(const void *n1, const void *n2) return -1; } else if (dev_id1 < dev_id2) { return 1; - -#ifdef Libisofs_file_src_cmp_sizE - } else if (ino_id1 < ino_id2) { return -1; } else if (ino_id1 > ino_id2) { @@ -69,15 +60,6 @@ int iso_file_src_cmp(const void *n1, const void *n2) return 1; } return 0; - -#else /* Libisofs_file_src_cmp_sizE */ - - } else { - /* files belong to same device in same fs */ - return (ino_id1 < ino_id2) ? -1 : (ino_id1 > ino_id2) ? 1 : 0; - -#endif /* ! Libisofs_file_src_cmp_sizE */ - } } } diff --git a/libisofs/libisofs.h b/libisofs/libisofs.h index abf10a0..d0e70ef 100644 --- a/libisofs/libisofs.h +++ b/libisofs/libisofs.h @@ -5044,12 +5044,6 @@ struct burn_source { #define Libisofs_setlocale_in_iniT yes -/* Stabilization: Trying to avoid the risk of losing file content by duplicate - inodes. iso_file_src_cmp() shall compare sizes too. -*/ -#define Libisofs_file_src_cmp_sizE yes - - /* Protocol Upgrade : change to AAIP-2.0 with field signature "AL" */ #define Libisofs_aaip_2_0 yes