made style changes, added description in man file

This commit is contained in:
Paul Cruz 2017-06-19 09:55:55 -07:00
parent e3609ee869
commit 55b9b28dad
2 changed files with 7 additions and 4 deletions

View File

@ -929,12 +929,11 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
/* skip the rest of the blocks in the frame */ /* skip the rest of the blocks in the frame */
{ {
int lastBlock = 0; int lastBlock = 0;
size_t readBytes = 0;
do { do {
BYTE blockHeaderBuffer[3]; BYTE blockHeaderBuffer[3];
U32 blockHeader; U32 blockHeader;
int blockSize; int blockSize;
readBytes = fread(blockHeaderBuffer, 1, 3, srcFile); size_t readBytes = fread(blockHeaderBuffer, 1, 3, srcFile);
if (readBytes != 3) { if (readBytes != 3) {
DISPLAY("There was a problem reading the block header\n"); DISPLAY("There was a problem reading the block header\n");
detectError = 1; detectError = 1;
@ -984,8 +983,8 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
break; break;
} }
{ {
long const frameSize = MEM_readLE32(frameSizeBuffer); U32 const frameSize = MEM_readLE32(frameSizeBuffer);
int const ret = fseek(srcFile, frameSize, SEEK_CUR); int const ret = fseek(srcFile, (long)frameSize, SEEK_CUR);
if (ret != 0) { if (ret != 0) {
DISPLAY("Error: could not find end of skippable frame\n"); DISPLAY("Error: could not find end of skippable frame\n");
detectError = 1; detectError = 1;

View File

@ -93,6 +93,10 @@ the last one takes effect.
* `--train FILEs`: * `--train FILEs`:
Use FILEs as a training set to create a dictionary. Use FILEs as a training set to create a dictionary.
The training set should contain a lot of small files (> 100). The training set should contain a lot of small files (> 100).
* `-l`, `--list`:
Display information related to a zstd compressed file, such as size, ratio, and checksum.
Some of these fields may not be available.
This command can be augmented with the `-v` modifier.
### Operation modifiers ### Operation modifiers