mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[utils]: Fix warning on Linux
Change-Id: I5b7319381f55fd089d512b9a3274dd9273b7279c Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -111,10 +111,16 @@ void write_checksum(FILE *fp, RK_U8 *sum)
|
||||
void read_checksum(FILE *fp, RK_U8 *sum)
|
||||
{
|
||||
RK_S32 i;
|
||||
int ret;
|
||||
|
||||
for (i = 0; i < 16; i++)
|
||||
fscanf(fp, "%02hhx", sum + i);
|
||||
for (i = 0; i < 16; i++) {
|
||||
ret = fscanf(fp, "%02hhx", sum + i);
|
||||
if (ret == EOF) {
|
||||
mpp_err_f("unexpected EOF found\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
fscanf(fp, "\n");
|
||||
ret = fscanf(fp, "\n");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user