mirror of
https://github.com/openharmony/communication_ipc_lite.git
synced 2026-07-20 09:23:46 -04:00
Signed-off-by: lixiang <lixiang380@huawei.com>
This commit is contained in:
@@ -514,6 +514,7 @@ SEND_EXIT:
|
||||
|
||||
int32_t FreeBuffer(const IpcContext* con, void* ptr)
|
||||
{
|
||||
(void)con;
|
||||
IpcContext context;
|
||||
int32_t ret;
|
||||
|
||||
@@ -736,7 +737,7 @@ ERROR_MALLOC:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int32_t StartCallbackDispatch()
|
||||
static int32_t StartCallbackDispatch(void)
|
||||
{
|
||||
pthread_attr_t threadAttr;
|
||||
pthread_attr_init(&threadAttr);
|
||||
|
||||
@@ -827,6 +827,7 @@ int32_t IpcIoPopFd(IpcIo* io)
|
||||
|
||||
BuffPtr* IpcIoPopDataBuff(IpcIo* io)
|
||||
{
|
||||
(void)io;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -321,6 +321,8 @@ int32_t SetSaManager(const IpcContext* context, size_t maxMsgSize)
|
||||
|
||||
int32_t AddServiceAccess(SvcIdentity sid, pid_t pid)
|
||||
{
|
||||
(void)sid;
|
||||
(void)pid;
|
||||
return LITEIPC_OK;
|
||||
}
|
||||
|
||||
@@ -354,7 +356,7 @@ static int BinderWrite(const IpcContext *context, void *data, size_t len)
|
||||
|
||||
bwr.write_size = len;
|
||||
bwr.write_consumed = 0;
|
||||
bwr.write_buffer = (uintptr_t) data;
|
||||
bwr.write_buffer = (uintptr_t)data;
|
||||
bwr.read_size = 0;
|
||||
bwr.read_consumed = 0;
|
||||
bwr.read_buffer = 0;
|
||||
@@ -402,6 +404,8 @@ static void HandleSpawnLooper(const IpcContext *context, const struct FuncPair *
|
||||
if (btd == NULL) {
|
||||
return;
|
||||
}
|
||||
(void)memset_s(btd, sizeof(struct BinderThreadDesc), 0, sizeof(struct BinderThreadDesc));
|
||||
|
||||
btd->context = context;
|
||||
btd->func = funcPair->func;
|
||||
btd->argv = funcPair->argv;
|
||||
@@ -1032,6 +1036,8 @@ int32_t RegisterIpcCallback(IpcMsgHandler func, uint32_t mode, uint32_t timeoutM
|
||||
ret = LITEIPC_EINTNL;
|
||||
goto ERROR;
|
||||
}
|
||||
(void)memset_s(node, sizeof(AnonymousApi), 0, sizeof(AnonymousApi));
|
||||
|
||||
node->token = (uint32_t)(uintptr_t)node;
|
||||
node->hdlerPair.usedFlag = true;
|
||||
node->hdlerPair.hdler = func;
|
||||
|
||||
Reference in New Issue
Block a user