minor changes
This commit is contained in:
+3
-5
@@ -22,8 +22,7 @@
|
|||||||
- zstd homepage : http://www.zstd.net
|
- zstd homepage : http://www.zstd.net
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
Note : this is stand-alone program.
|
Note : this file is part of zstd command line, which is not library.
|
||||||
It is not part of ZSTD compression library, it is a user program of ZSTD library.
|
|
||||||
The license of ZSTD library is BSD.
|
The license of ZSTD library is BSD.
|
||||||
The license of this file is GPLv2.
|
The license of this file is GPLv2.
|
||||||
*/
|
*/
|
||||||
@@ -173,10 +172,9 @@ static FILE* FIO_openSrcFile(const char* srcFileName)
|
|||||||
SET_BINARY_MODE(stdin);
|
SET_BINARY_MODE(stdin);
|
||||||
} else {
|
} else {
|
||||||
f = fopen(srcFileName, "rb");
|
f = fopen(srcFileName, "rb");
|
||||||
|
if ( f==NULL ) DISPLAYLEVEL(1, "zstd: %s: %s \n", srcFileName, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( f==NULL ) DISPLAYLEVEL(1, "zstd: %s: %s \n", srcFileName, strerror(errno));
|
|
||||||
|
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,9 +210,9 @@ static FILE* FIO_openDstFile(const char* dstFileName)
|
|||||||
while ((ch!=EOF) && (ch!='\n')) ch = getchar(); /* flush rest of input line */
|
while ((ch!=EOF) && (ch!='\n')) ch = getchar(); /* flush rest of input line */
|
||||||
} } }
|
} } }
|
||||||
f = fopen( dstFileName, "wb" );
|
f = fopen( dstFileName, "wb" );
|
||||||
|
if (f==NULL) DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f==NULL) DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
|
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user