change param api

Change-Id: Iab0fbe089e803dcad60c032f1ccaf73f916728af
This commit is contained in:
lanxueyuan
2021-04-25 01:17:23 -07:00
parent a63c6e8003
commit b4d4dffe8d
+1 -3
View File
@@ -40,11 +40,9 @@ static const pid_t INIT_PROCESS_PID = 1;
static void PrintSysInfo()
{
#ifdef OHOS_LITE
char* sysInfo = GetVersionId();
const char* sysInfo = GetVersionId();
if (sysInfo != NULL) {
printf("[Init] %s\n", sysInfo);
free(sysInfo);
sysInfo = NULL;
return;
}
printf("[Init] main, GetVersionId failed!\n");