Switch to using libz instead of libunz as per the note in
external/zlib/Android.mk.
Removed LOCAL_C_INCLUDES which are no longer necessary as zlib
now uses the LOCAL_EXPORT_C_INCLUDE_DIRS mechanism.
Tested compiling the projects that make use of libzipfile using
a clean out dir with both aosp_flounder-userdebug and aosp_arm-eng
make -j16 test_zipfile fastboot adb adbd libSR_Core libsrec_jni
Change-Id: I5fdf34b6c272ae64c406e5b77ab67a5f5e4b5890
Fixed implicit declaration of strcmp warning
Fixed switch case of enumeration not handled
Change-Id: Ic3f3690a2e749235b1b0dffd252b119855ad36c0
Author: Ariel Bernal <ariel.j.bernal@intel.com>
Reviewed-by: Tareq A Siraj <tareq.a.siraj@intel.com>
fastboot passes the *uncompressed* length of the file as the length of
the input to the inflate() call, which happens to work unless the
compressed data is actually larger than the uncompressed data (which
it can be for very small files). Fix this to pass the correct
compressed length down to the inflate call.