Use char as the level like zipflow itself

parent b4bfae43
...@@ -57,14 +57,14 @@ assert_zlib(void) ...@@ -57,14 +57,14 @@ assert_zlib(void)
} while(0) } while(0)
#endif #endif
static int default_level = Z_DEFAULT_COMPRESSION; static char default_level = Z_DEFAULT_COMPRESSION;
static const void *zipflow_priv = &zipflow_priv; static const void *zipflow_priv = &zipflow_priv;
struct zipflow_task { struct zipflow_task {
unsigned magic; unsigned magic;
#define ZIPFLOW_TASK_MAGIC 0xaa175160 #define ZIPFLOW_TASK_MAGIC 0xaa175160
int level; char level;
VCL_STRING name; VCL_STRING name;
unsigned mode; unsigned mode;
uint32_t atime, mtime; uint32_t atime, mtime;
...@@ -130,7 +130,7 @@ vmod_set_level(VRT_CTX, VCL_INT level) ...@@ -130,7 +130,7 @@ vmod_set_level(VRT_CTX, VCL_INT level)
zft = get_zipflow_task(ctx); zft = get_zipflow_task(ctx);
if (zft == NULL) if (zft == NULL)
return; return;
zft->level = level; zft->level = (char)level;
} }
VCL_VOID VCL_VOID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment