8202544: Hide unused exports in libzip
authoraivanov
Fri, 11 May 2018 15:07:43 +0100
changeset 50141 8a7d677ad039
parent 50140 1a0960ba9735
child 50142 f348e5d4769b
8202544: Hide unused exports in libzip Reviewed-by: clanger, ihse
src/java.base/share/native/libzip/zip_util.c
src/java.base/share/native/libzip/zip_util.h
--- a/src/java.base/share/native/libzip/zip_util.c	Fri May 11 21:03:07 2018 +0530
+++ b/src/java.base/share/native/libzip/zip_util.c	Fri May 11 15:07:43 2018 +0100
@@ -1094,7 +1094,7 @@
  * jzentry for each zip.  This optimizes a common access pattern.
  */
 
-JNIEXPORT void JNICALL
+void
 ZIP_FreeEntry(jzfile *jz, jzentry *ze)
 {
     jzentry *last;
@@ -1115,7 +1115,7 @@
  * Returns the zip entry corresponding to the specified name, or
  * NULL if not found.
  */
-JNIEXPORT jzentry *
+jzentry *
 ZIP_GetEntry(jzfile *zip, char *name, jint ulen)
 {
     if (ulen == 0) {
@@ -1254,7 +1254,7 @@
 /*
  * Locks the specified zip file for reading.
  */
-JNIEXPORT void JNICALL
+void
 ZIP_Lock(jzfile *zip)
 {
     MLOCK(zip->lock);
@@ -1263,7 +1263,7 @@
 /*
  * Unlocks the specified zip file.
  */
-JNIEXPORT void JNICALL
+void
 ZIP_Unlock(jzfile *zip)
 {
     MUNLOCK(zip->lock);
@@ -1310,7 +1310,7 @@
  * The current implementation does not support reading an entry that
  * has the size bigger than 2**32 bytes in ONE invocation.
  */
-JNIEXPORT jint JNICALL
+jint
 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len)
 {
     jlong entry_size;
--- a/src/java.base/share/native/libzip/zip_util.h	Fri May 11 21:03:07 2018 +0530
+++ b/src/java.base/share/native/libzip/zip_util.h	Fri May 11 15:07:43 2018 +0100
@@ -268,15 +268,15 @@
 JNIEXPORT void
 ZIP_Close(jzfile *zip);
 
-JNIEXPORT jzentry *
+jzentry *
 ZIP_GetEntry(jzfile *zip, char *name, jint ulen);
-JNIEXPORT void JNICALL
+void
 ZIP_Lock(jzfile *zip);
-JNIEXPORT void JNICALL
+void
 ZIP_Unlock(jzfile *zip);
-JNIEXPORT jint JNICALL
+jint
 ZIP_Read(jzfile *zip, jzentry *entry, jlong pos, void *buf, jint len);
-JNIEXPORT void JNICALL
+void
 ZIP_FreeEntry(jzfile *zip, jzentry *ze);
 jlong ZIP_GetEntryDataOffset(jzfile *zip, jzentry *entry);
 jzentry * ZIP_GetEntry2(jzfile *zip, char *name, jint ulen, jboolean addSlash);