]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
size_t const value
authorPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 18:56:11 +0000 (11:56 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Tue, 20 Jun 2017 18:56:11 +0000 (11:56 -0700)
programs/fileio.c

index f492732716680da71f900b983e9cefffbe36fd72..342325465d932c7601d4c3ee20777183b3c4a6dc 100644 (file)
@@ -933,7 +933,7 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
                         BYTE blockHeaderBuffer[3];
                         U32 blockHeader;
                         int blockSize;
-                        size_t readBytes = fread(blockHeaderBuffer, 1, 3, srcFile);
+                        size_t const readBytes = fread(blockHeaderBuffer, 1, 3, srcFile);
                         if (readBytes != 3) {
                             DISPLAY("There was a problem reading the block header\n");
                             detectError = 1;