This commit is contained in:
2021-09-13 17:22:39 +02:00
parent eb19ac1375
commit cac5e40d8a

View File

@ -365,7 +365,7 @@ int verifyChecksumFromFlash(char *mess, char *clientChecksum, char *fname,
return FAIL; return FAIL;
} }
const int readUnitSize = 128; const int readUnitSize = 128;
int c = fgetc(fp); int character = fgetc(fp);
int oldProgress = 0; int oldProgress = 0;
ssize_t totalBytesRead = 1; ssize_t totalBytesRead = 1;
@ -383,7 +383,7 @@ int verifyChecksumFromFlash(char *mess, char *clientChecksum, char *fname,
LOG(logERROR, (mess)); LOG(logERROR, (mess));
return FAIL; return FAIL;
} }
if (fputc(c, flashfp) != c) { if (fputc(character, flashfp) != character) {
LOG(logERROR, ("Could not write to flash fp file\n")); LOG(logERROR, ("Could not write to flash fp file\n"));
} }
// read only until a particular size (drive) // read only until a particular size (drive)