static FATFS g_Filesystem;
static int isMounted = 0;
-static char buff[32768];
+static unsigned char buff[32768];
// tool needed by fatfs
DWORD get_fattime(void)
{
/* Scan for extended character code entry */
if ((sscanf(State, "%6x", &CharCode) == 1) &&
- ((Length == 5) && (State[0] == '0') ||
- (Length == 6) && ((State[0] == '0') && (State[1] == '0'))))
+ (((Length == 5) && (State[0] == '0')) ||
+ ((Length == 6) && ((State[0] == '0') && (State[1] == '0')))))
{
/* Handle a ligature key */
CharInfo = CHAR_LIGATURE_KEY;
CHAR State[8][8];
ULONG ScanCodeCount = -1;
PLAYOUTENTRY Entry;
- UCHAR CharacterType, LigatureChar;
+ UCHAR CharacterType;
+ CHAR LigatureChar;
/* Zero out the layout */
memset(LayoutData, 0, sizeof(LAYOUT));
InSectionHeaders[Section].Name);
if (InSectionHeaders[Section].Name[0] == '/')
{
- StringTableLength = atoi(InSectionHeaders[Section].Name+1) + strlen(SectionName) + 1;
+ StringTableLength = atoi((const char *)InSectionHeaders[Section].Name + 1) +
+ strlen((const char *)SectionName) + 1;
}
if ((StartOfRawData == 0 || InSectionHeaders[Section].PointerToRawData < StartOfRawData)
&& InSectionHeaders[Section].PointerToRawData != 0