mirror of
https://github.com/openharmony/startup_init_lite.git
synced 2026-07-19 17:07:55 -04:00
change param api
Change-Id: Iab0fbe089e803dcad60c032f1ccaf73f916728af
This commit is contained in:
+1
-3
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user