diff options
author | Yann Collet <cyan@fb.com> | 2016-11-15 22:01:37 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-15 22:46:57 (GMT) |
commit | d2be69b144d6c5fd9a3dcbc4133e93e710cda998 (patch) | |
tree | 39311a1057f16233f54bccf2f044c6a479c3de74 /programs/lz4io.h | |
parent | 8c32a12f1c50a5561a9efcfe802b5109379a4120 (diff) | |
download | lz4-d2be69b144d6c5fd9a3dcbc4133e93e710cda998.zip lz4-d2be69b144d6c5fd9a3dcbc4133e93e710cda998.tar.gz lz4-d2be69b144d6c5fd9a3dcbc4133e93e710cda998.tar.bz2 |
fixed minor coverity warnings
Diffstat (limited to 'programs/lz4io.h')
-rw-r--r-- | programs/lz4io.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/programs/lz4io.h b/programs/lz4io.h index 315c805..e1ab5f3 100644 --- a/programs/lz4io.h +++ b/programs/lz4io.h @@ -32,16 +32,20 @@ #ifndef LZ4IO_H_237902873 #define LZ4IO_H_237902873 +/*--- Dependency ---*/ +#include <stddef.h> /* size_t */ + + /* ************************************************** */ /* Special input/output values */ /* ************************************************** */ #define NULL_OUTPUT "null" -static char const stdinmark[] = "stdin"; -static char const stdoutmark[] = "stdout"; +static const char stdinmark[] = "stdin"; +static const char stdoutmark[] = "stdout"; #ifdef _WIN32 -static char const nulmark[] = "nul"; +static const char nulmark[] = "nul"; #else -static char const nulmark[] = "/dev/null"; +static const char nulmark[] = "/dev/null"; #endif @@ -69,8 +73,8 @@ int LZ4IO_setOverwrite(int yes); int LZ4IO_setTestMode(int yes); /* blockSizeID : valid values : 4-5-6-7 - return : -1 if error, blockSize if OK */ -int LZ4IO_setBlockSizeID(int blockSizeID); + return : 0 if error, blockSize if OK */ +size_t LZ4IO_setBlockSizeID(unsigned blockSizeID); /* Default setting : independent blocks */ typedef enum { LZ4IO_blockLinked=0, LZ4IO_blockIndependent} LZ4IO_blockMode_t; |