summaryrefslogtreecommitdiffstats
path: root/minzip/Zip.c
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-02-09 05:15:24 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-09 05:15:24 +0100
commit54b373c04493ddd0be3161fd3253681a7b7f49a6 (patch)
tree678942f5c87df30e46113670cc522734c56cce05 /minzip/Zip.c
parentam 42b09d25: am 6a0d2fbc: Merge "There\'s no GPL code in \'updater\'." (diff)
parentam 99e084ca: Merge "Remove dead/unused code and realign some of the comments to make it more cleaner and easier to read" (diff)
downloadandroid_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.tar
android_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.tar.gz
android_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.tar.bz2
android_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.tar.lz
android_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.tar.xz
android_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.tar.zst
android_bootable_recovery-54b373c04493ddd0be3161fd3253681a7b7f49a6.zip
Diffstat (limited to '')
-rw-r--r--minzip/Zip.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/minzip/Zip.c b/minzip/Zip.c
index 70aff00cd..579e5319f 100644
--- a/minzip/Zip.c
+++ b/minzip/Zip.c
@@ -327,10 +327,6 @@ static bool parseZipArchive(ZipArchive* pArchive)
#else
pEntry = &pArchive->pEntries[i];
#endif
-
- //LOGI("%d: localHdr=%d fnl=%d el=%d cl=%d\n",
- // i, localHdrOffset, fileNameLen, extraLen, commentLen);
-
pEntry->fileNameLen = fileNameLen;
pEntry->fileName = fileName;
@@ -923,8 +919,8 @@ bool mzExtractRecursive(const ZipArchive *pArchive,
/* Walk through the entries and extract anything whose path begins
* with zpath.
-//TODO: since the entries are sorted, binary search for the first match
-// and stop after the first non-match.
+ //TODO: since the entries are sorted, binary search for the first match
+ // and stop after the first non-match.
*/
unsigned int i;
bool seenMatch = false;
@@ -933,10 +929,10 @@ bool mzExtractRecursive(const ZipArchive *pArchive,
for (i = 0; i < pArchive->numEntries; i++) {
ZipEntry *pEntry = pArchive->pEntries + i;
if (pEntry->fileNameLen < zipDirLen) {
-//TODO: look out for a single empty directory entry that matches zpath, but
-// missing the trailing slash. Most zip files seem to include
-// the trailing slash, but I think it's legal to leave it off.
-// e.g., zpath "a/b/", entry "a/b", with no children of the entry.
+ //TODO: look out for a single empty directory entry that matches zpath, but
+ // missing the trailing slash. Most zip files seem to include
+ // the trailing slash, but I think it's legal to leave it off.
+ // e.g., zpath "a/b/", entry "a/b", with no children of the entry.
/* No chance of matching.
*/
#if SORT_ENTRIES