[CMD] Use pointers to const strings in error functions, where applicable.

This commit is contained in:
Hermès Bélusca-Maïto 2020-09-12 20:29:54 +02:00
parent 3f8f3a2bba
commit 00ce3c48fe
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 20 additions and 20 deletions

View file

@ -112,7 +112,7 @@ restart:
return (CurChar = Char);
}
void ParseErrorEx(LPTSTR s)
VOID ParseErrorEx(IN PCTSTR s)
{
/* Only display the first error we encounter */
if (!bParseError)
@ -120,7 +120,7 @@ void ParseErrorEx(LPTSTR s)
bParseError = TRUE;
}
static void ParseError(void)
static __inline VOID ParseError(VOID)
{
ParseErrorEx(CurrentTokenType != TOK_END ? CurrentToken : NULL);
}