1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

appease conversion warnings

This commit is contained in:
internal 2023-07-31 21:30:29 +02:00
parent c522f28d68
commit 3fc610f546

View File

@ -1076,12 +1076,12 @@ static int check_fw(struct ddflash *ddf, char *fn, uint32_t *fw_off)
close(fd); close(fd);
for (p = 0; p < fsize && buf[p]; p++) { for (p = 0; p < fsize && buf[p]; p++) {
char *key = &buf[p], *val = NULL; char *key = (char *) &buf[p], *val = NULL;
for (; p < fsize && buf[p] != 0x0a; p++) { for (; p < fsize && buf[p] != 0x0a; p++) {
if (buf[p] == ':') { if (buf[p] == ':') {
buf[p] = 0; buf[p] = 0;
val = &buf[p + 1]; val = (char *) &buf[p + 1];
} }
} }
if (val == NULL || p == fsize) if (val == NULL || p == fsize)