TerminalShell: silence compiler warnings

This commit is contained in:
李通洲
2022-10-09 21:12:27 +08:00
parent 2a491a8da9
commit 6a9fd7a84d
@@ -52,7 +52,7 @@ static bool getProcessInfo(uint32_t pid, uint32_t* ppid, FFstrbuf* pname, FFstrb
static void getShellVersion(FFstrbuf* exe, FFstrbuf* version)
{
char* const argv[] = { exe->chars, "--version", NULL };
char* const argv[] = { exe->chars, (char*)"--version", NULL };
ffProcessAppendStdOut(version, argv);
ffStrbufTrimRight(version, '\n');
ffStrbufSubstrAfterLastC(version, ' ');