Skip to content

Commit

Permalink
src,zlib: tighten up Z_*_WINDOWBITS macros
Browse files Browse the repository at this point in the history
PR-URL: #39115
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
XadillaX authored and targos committed Sep 4, 2021
1 parent 2629979 commit c8c290a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/node_internals.h
Expand Up @@ -39,11 +39,6 @@
#include <string>
#include <vector>

// Custom constants used by both node_constants.cc and node_zlib.cc
#define Z_MIN_WINDOWBITS 8
#define Z_MAX_WINDOWBITS 15
#define Z_DEFAULT_WINDOWBITS 15

struct sockaddr;

namespace node {
Expand Down
3 changes: 3 additions & 0 deletions src/node_zlib.cc
Expand Up @@ -71,6 +71,9 @@ namespace {
#define Z_MIN_LEVEL -1
#define Z_MAX_LEVEL 9
#define Z_DEFAULT_LEVEL Z_DEFAULT_COMPRESSION
#define Z_MIN_WINDOWBITS 8
#define Z_MAX_WINDOWBITS 15
#define Z_DEFAULT_WINDOWBITS 15

#define ZLIB_ERROR_CODES(V) \
V(Z_OK) \
Expand Down

0 comments on commit c8c290a

Please sign in to comment.