undo temporary alignment hack
Remove the memory alignment that mysteriously made OTA installs work,
in anticipation of a kernel that fixes the actual problem. Handle
EINTR properly.
diff --git a/minzip/Zip.h b/minzip/Zip.h
index 57c0abd..1c1df2f 100644
--- a/minzip/Zip.h
+++ b/minzip/Zip.h
@@ -56,14 +56,6 @@
} UnterminatedString;
/*
- * The information we pass down to writeProcessFunction.
- */
-typedef struct {
- int fd;
- unsigned char* aligned_buffer;
-} WriteInfo;
-
-/*
* Open a Zip archive.
*
* On success, returns 0 and populates "pArchive". Returns nonzero errno
@@ -174,7 +166,7 @@
* Inflate and write an entry to a file.
*/
bool mzExtractZipEntryToFile(const ZipArchive *pArchive,
- const ZipEntry *pEntry, WriteInfo *wi);
+ const ZipEntry *pEntry, int fd);
/*
* Inflate all entries under zipDir to the directory specified by