diff --git a/src/PikaObj.c b/src/PikaObj.c index 3ea0ff28e..77b3f0aec 100644 --- a/src/PikaObj.c +++ b/src/PikaObj.c @@ -410,7 +410,7 @@ exit: return res; } -PikaObj* obj_getObjDirect(PikaObj* self, char* name) { +static PikaObj* __obj_getObjDirect(PikaObj* self, char* name) { if (NULL == self) { return NULL; } @@ -437,7 +437,7 @@ static PikaObj* __obj_getObjWithKeepDeepth(PikaObj* self, PikaObj* obj = self; for (int32_t i = 0; i < token_num - keepDeepth; i++) { char* token = strPopToken(token_buff, objPath_buff, '.'); - obj = obj_getObjDirect(obj, token); + obj = __obj_getObjDirect(obj, token); if (obj == NULL) { goto exit; } diff --git a/src/PikaObj.h b/src/PikaObj.h index bbf8f2432..621195c88 100644 --- a/src/PikaObj.h +++ b/src/PikaObj.h @@ -130,7 +130,6 @@ int32_t obj_addOther(PikaObj* self, char* subObjectName, void* new_projcetFun); int32_t obj_setObjWithoutClass(PikaObj* self, char* subObjectName, void* new_projcetFun); -PikaObj* obj_getObjDirect(PikaObj* self, char* name); PikaObj* obj_getObj(PikaObj* self, char* objPath); PikaObj* obj_getHostObj(PikaObj* self, char* objPath);