]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix srcSize typo and add new UTIL func to comment 1561/head
authorshakeelrao <shakeelrao79@gmail.com>
Fri, 29 Mar 2019 00:50:34 +0000 (17:50 -0700)
committershakeelrao <shakeelrao79@gmail.com>
Fri, 29 Mar 2019 00:50:34 +0000 (17:50 -0700)
lib/zstd.h
programs/fileio.c

index c1c0fe744c028290288113421042351da20de73b..ea2b9a5e4907d952db7f7d1c67eb1c1042c87ebb 100644 (file)
@@ -1136,7 +1136,7 @@ ZSTDLIB_API unsigned long long ZSTD_findDecompressedSize(const void* src, size_t
  *  note 3  : when the decompressed size field isn't available, the upper-bound for that frame is calculated by:
  *              upper-bound = # blocks * min(128 KB, Window_Size)
  */
-ZSTDLIB_API unsigned long long ZSTD_decompressBound(const void* src, size_t srcSice);
+ZSTDLIB_API unsigned long long ZSTD_decompressBound(const void* src, size_t srcSize);
 
 /*! ZSTD_frameHeaderSize() :
  *  srcSize must be >= ZSTD_FRAMEHEADERSIZE_PREFIX.
index cbd7b92bc615327b14b081fb889d91904636fe57..412ef4762c7be7a36780ad79eab8be4d638997a4 100644 (file)
@@ -24,7 +24,7 @@
 *  Includes
 ***************************************/
 #include "platform.h"   /* Large Files support, SET_BINARY_MODE */
-#include "util.h"       /* UTIL_getFileSize, UTIL_isRegularFile */
+#include "util.h"       /* UTIL_getFileSize, UTIL_isRegularFile, UTIL_isSameFile */
 #include <stdio.h>      /* fprintf, fopen, fread, _fileno, stdin, stdout */
 #include <stdlib.h>     /* malloc, free */
 #include <string.h>     /* strcmp, strlen */