From c2a2a2750015aeec75b7b234cf067e8965de8cb5 Mon Sep 17 00:00:00 2001 From: internal <> Date: Mon, 31 Jul 2023 21:30:29 +0200 Subject: [PATCH] appease conversion warnings --- apps/octonet/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/octonet/flash.c b/apps/octonet/flash.c index 47b37d5..5daefa0 100644 --- a/apps/octonet/flash.c +++ b/apps/octonet/flash.c @@ -1076,12 +1076,12 @@ static int check_fw(struct ddflash *ddf, char *fn, uint32_t *fw_off) close(fd); 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++) { if (buf[p] == ':') { buf[p] = 0; - val = &buf[p + 1]; + val = (char *) &buf[p + 1]; } } if (val == NULL || p == fsize)