Skip to content

Commit cada6b8

Browse files
committed
Reduce compiler warnings
1 parent cb7d35d commit cada6b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sd-bootloader-ng/bootmanager/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void jsmn_obj_key(const char *key, size_t key_len, void *user_arg) {
8787
if (jsonArrayId == 0)
8888
Config_generalSettings.ofwFixValue = 0x00000000;
8989
if (jsonArrayId < 4)
90-
Config_generalSettings.ofwFixValue += xtob(key) << 8*jsonArrayId;
90+
Config_generalSettings.ofwFixValue += xtob((char*)key) << 8*jsonArrayId;
9191
jsonArrayId++;
9292
} else if (strncmp(jsonGroupName, "ofw", 3) == 0
9393
|| strncmp(jsonGroupName, "cfw", 3)

sd-bootloader-ng/bootmanager/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ static bool prepareRun(sImageInfo* imageInfo, char* imagePath, uint32_t filesize
693693
readLen = 0;
694694
}
695695

696-
if (readLen > 0 && (readLen == sl_FsRead(fhandle, offset, numbers, readLen))) {
696+
if (readLen > 0 && (readLen == sl_FsRead(fhandle, offset, (char*)numbers, readLen))) {
697697
sl_FsClose(fhandle, 0, 0, 0);
698698
if (numbers[1] == 0xBEAC0005) {
699699
Config_generalSettings.ofwFixValue = numbers[0];

0 commit comments

Comments
 (0)