diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 15:09:40 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 15:09:40 +0400 |
commit | 5e34ff29bcc870936ab18172f438a34d042d4e03 (patch) | |
tree | a5e7a528f2f916eb883f1161eadceacdf2dca4be /archival/libunarchive/get_header_tar.c | |
parent | 8b814b4a349e2262c0ad25793b05206a14651ebb (diff) |
*: mass renaming of USE_XXXX to IF_XXXX
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially
badly named. It was not skipping anything!
Diffstat (limited to 'archival/libunarchive/get_header_tar.c')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 443052f7e..16e2de440 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -144,8 +144,8 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) // if (!archive_handle->ah_priv_inited) { // archive_handle->ah_priv_inited = 1; // p_end = 0; -// USE_FEATURE_TAR_GNU_EXTENSIONS(p_longname = NULL;) -// USE_FEATURE_TAR_GNU_EXTENSIONS(p_linkname = NULL;) +// IF_FEATURE_TAR_GNU_EXTENSIONS(p_longname = NULL;) +// IF_FEATURE_TAR_GNU_EXTENSIONS(p_linkname = NULL;) // } if (sizeof(tar) != 512) @@ -176,7 +176,7 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) bb_error_msg_and_die("short read"); } if (i != 512) { - USE_FEATURE_TAR_AUTODETECT(goto autodetect;) + IF_FEATURE_TAR_AUTODETECT(goto autodetect;) goto short_read; } @@ -265,14 +265,14 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) #if ENABLE_FEATURE_TAR_OLDGNU_COMPATIBILITY sum = strtoul(tar.chksum, &cp, 8); if ((*cp && *cp != ' ') - || (sum_u != sum USE_FEATURE_TAR_OLDSUN_COMPATIBILITY(&& sum_s != sum)) + || (sum_u != sum IF_FEATURE_TAR_OLDSUN_COMPATIBILITY(&& sum_s != sum)) ) { bb_error_msg_and_die("invalid tar header checksum"); } #else /* This field does not need special treatment (getOctal) */ sum = xstrtoul(tar.chksum, 8); - if (sum_u != sum USE_FEATURE_TAR_OLDSUN_COMPATIBILITY(&& sum_s != sum)) { + if (sum_u != sum IF_FEATURE_TAR_OLDSUN_COMPATIBILITY(&& sum_s != sum)) { bb_error_msg_and_die("invalid tar header checksum"); } #endif @@ -356,7 +356,7 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle) file_header->mode |= S_IFBLK; goto size0; case '5': - USE_FEATURE_TAR_OLDGNU_COMPATIBILITY(set_dir:) + IF_FEATURE_TAR_OLDGNU_COMPATIBILITY(set_dir:) file_header->mode |= S_IFDIR; goto size0; case '6': |