]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
defaultCustomNULL replaced with defaultCustomMem
authorinikep <inikep@gmail.com>
Fri, 3 Jun 2016 11:28:20 +0000 (13:28 +0200)
committerinikep <inikep@gmail.com>
Fri, 3 Jun 2016 11:28:20 +0000 (13:28 +0200)
lib/common/zstd_internal.h
lib/compress/zbuff_compress.c
lib/compress/zstd_compress.c
lib/decompress/zbuff_decompress.c
lib/decompress/zstd_decompress.c

index b56030ba5052072b99393b105447ea00ada493ef..8432c1dd15f1e8a39ae7fc5c2f9978ea59e09c8a 100644 (file)
@@ -259,6 +259,5 @@ int ZSTD_isSkipFrame(ZSTD_DCtx* dctx);
 void* ZSTD_defaultAllocFunction(void* opaque, size_t size);
 void ZSTD_defaultFreeFunction(void* opaque, void* address);
 static ZSTD_customMem const defaultCustomMem = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL };
-static ZSTD_customMem const defaultCustomNULL = { NULL, NULL, NULL };
-    
 #endif   /* ZSTD_CCOMMON_H_MODULE */
index 1681bc84a7b100555ea8c4cef1cbef1c7921bbce..0340eeb35a9b242b568e84f238be1efa217bcaa4 100644 (file)
@@ -100,7 +100,7 @@ struct ZBUFF_CCtx_s {
 
 ZBUFF_CCtx* ZBUFF_createCCtx(void)
 {
-    return ZBUFF_createCCtx_advanced(defaultCustomNULL);
+    return ZBUFF_createCCtx_advanced(defaultCustomMem);
 }
 
 ZBUFF_CCtx* ZBUFF_createCCtx_advanced(ZSTD_customMem customMem)
index 3196916f92c08038f913da2df8dee3055b60acb8..68a6072e84493d6afd8a4ab01e6875bfc2f89ea2 100644 (file)
@@ -121,7 +121,7 @@ struct ZSTD_CCtx_s
 
 ZSTD_CCtx* ZSTD_createCCtx(void)
 {
-    return ZSTD_createCCtx_advanced(defaultCustomNULL);
+    return ZSTD_createCCtx_advanced(defaultCustomMem);
 }
 
 ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
index 01fcc217f0d672c87657bb1895e930a4596714e7..e9e84ef7c2935f3f51fc2dd97374e9fcdf2503f7 100644 (file)
@@ -88,7 +88,7 @@ struct ZBUFF_DCtx_s {
 
 ZBUFF_DCtx* ZBUFF_createDCtx(void)
 {
-    return ZBUFF_createDCtx_advanced(defaultCustomNULL);
+    return ZBUFF_createDCtx_advanced(defaultCustomMem);
 }
 
 ZBUFF_DCtx* ZBUFF_createDCtx_advanced(ZSTD_customMem customMem)
index 495e8d296e6cc5ad76d3d81f2f28d251513d86fe..128d941eb86e7e907a935179f745e529d45a8eb4 100644 (file)
@@ -166,7 +166,7 @@ ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
 
 ZSTD_DCtx* ZSTD_createDCtx(void)
 {
-    return ZSTD_createDCtx_advanced(defaultCustomNULL);
+    return ZSTD_createDCtx_advanced(defaultCustomMem);
 }