mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
The full release notes can be found on Github: https://github.com/facebook/zstd/releases/tag/v1.4.4 Notable changes in this release include improved decompression speed (about 10%). See the Github release notes for more details. MFC after: I'm not going to, but feel free Relnotes: yes
28 lines
849 B
C
28 lines
849 B
C
/* gzclose.c contains minimal changes required to be compiled with zlibWrapper:
|
|
* - gz_statep was converted to union to work with -Wstrict-aliasing=1 */
|
|
|
|
/* gzclose.c -- zlib gzclose() function
|
|
* Copyright (C) 2004, 2010 Mark Adler
|
|
* For conditions of distribution and use, see http://www.zlib.net/zlib_license.html
|
|
*/
|
|
|
|
#include "gzguts.h"
|
|
|
|
/* gzclose() is in a separate file so that it is linked in only if it is used.
|
|
That way the other gzclose functions can be used instead to avoid linking in
|
|
unneeded compression or decompression routines. */
|
|
int ZEXPORT gzclose(file)
|
|
gzFile file;
|
|
{
|
|
#ifndef NO_GZCOMPRESS
|
|
gz_statep state;
|
|
|
|
if (file == NULL)
|
|
return Z_STREAM_ERROR;
|
|
state.file = file;
|
|
|
|
return state.state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
|
|
#else
|
|
return gzclose_r(file);
|
|
#endif
|
|
}
|