mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 02:40:40 +00:00
!7533 fix review comments
Merge pull request !7533 from 付舒长/fixerrorcode
This commit is contained in:
commit
06eaae3572
@ -184,8 +184,10 @@ bool GetConfigSupportAsServer(void)
|
||||
uint32_t GetAuthCapacity(void)
|
||||
{
|
||||
uint32_t authCapacity = 0;
|
||||
if (SoftbusGetConfig(SOFTBUS_INT_AUTH_CAPACITY, (uint8_t *)(&authCapacity), sizeof(authCapacity)) != SOFTBUS_OK) {
|
||||
AUTH_LOGE(AUTH_CONN, "get auth capacity from config file fail");
|
||||
int32_t ret = SoftbusGetConfig(SOFTBUS_INT_AUTH_CAPACITY, (uint8_t *)(&authCapacity), sizeof(authCapacity));
|
||||
if (ret != SOFTBUS_OK) {
|
||||
AUTH_LOGE(AUTH_CONN, "get auth capacity from config file fail, ret=%{public}d", ret);
|
||||
return authCapacity;
|
||||
}
|
||||
AUTH_LOGI(AUTH_CONN, "auth capacity=%{public}u", authCapacity);
|
||||
return authCapacity;
|
||||
|
@ -157,8 +157,8 @@ int32_t LnnIpcSyncTrustedRelationShip(const char *pkgName, const char *msg, uint
|
||||
(void)pkgName;
|
||||
(void)msg;
|
||||
(void)msgLen;
|
||||
LNN_LOGI(LNN_EVENT, "not implement");
|
||||
return SOFTBUS_OK;
|
||||
LNN_LOGW(LNN_EVENT, "not implement");
|
||||
return SOFTBUS_NOT_IMPLEMENT;
|
||||
}
|
||||
|
||||
int32_t LnnIpcNotifyJoinResult(void *addr, uint32_t addrTypeLen, const char *networkId,
|
||||
|
@ -375,8 +375,8 @@ int32_t LnnIpcSyncTrustedRelationShip(const char *pkgName, const char *msg, uint
|
||||
(void)pkgName;
|
||||
(void)msg;
|
||||
(void)msgLen;
|
||||
LNN_LOGI(LNN_EVENT, "not implement");
|
||||
return SOFTBUS_OK;
|
||||
LNN_LOGW(LNN_EVENT, "not implement");
|
||||
return SOFTBUS_NOT_IMPLEMENT;
|
||||
}
|
||||
|
||||
int32_t LnnIpcNotifyJoinResult(void *addr, uint32_t addrTypeLen, const char *networkId,
|
||||
|
@ -107,7 +107,7 @@ int32_t ISoftBusServer::SyncTrustedRelationShip(const char *pkgName, const char
|
||||
(void)msg;
|
||||
(void)msgLen;
|
||||
COMM_LOGE(COMM_SVC, "ipc default impl");
|
||||
return SOFTBUS_IPC_ERR;
|
||||
return SOFTBUS_FUNC_NOT_SUPPORT;
|
||||
}
|
||||
|
||||
int32_t ISoftBusServer::GetSoftbusSpecObject(sptr<IRemoteObject> &object)
|
||||
|
Loading…
Reference in New Issue
Block a user