< prev index next >

src/java.base/share/native/libzip/zlib/uncompr.c

Print this page
@@ -46,16 +46,12 @@
       uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough
     memory, Z_BUF_ERROR if there was not enough room in the output buffer, or
     Z_DATA_ERROR if the input data was corrupted, including if the input data is
     an incomplete zlib stream.
  */
- int ZEXPORT uncompress2(dest, destLen, source, sourceLen)
-     Bytef *dest;
-     uLongf *destLen;
-     const Bytef *source;
-     uLong *sourceLen;
- {
+ int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source,
+                         uLong *sourceLen) {
      z_stream stream;
      int err;
      const uInt max = (uInt)-1;
      uLong len, left;
      Byte buf[1];    /* for detection of incomplete stream when *destLen == 0 */

@@ -105,13 +101,9 @@
             err == Z_NEED_DICT ? Z_DATA_ERROR  :
             err == Z_BUF_ERROR && left + stream.avail_out ? Z_DATA_ERROR :
             err;
  }
  
- int ZEXPORT uncompress(dest, destLen, source, sourceLen)
-     Bytef *dest;
-     uLongf *destLen;
-     const Bytef *source;
-     uLong sourceLen;
- {
+ int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source,
+                        uLong sourceLen) {
      return uncompress2(dest, destLen, source, &sourceLen);
  }
< prev index next >