!7533 fix review comments

Merge pull request !7533 from 付舒长/fixerrorcode
This commit is contained in:
openharmony_ci 2024-10-30 04:52:08 +00:00 committed by Gitee
commit 06eaae3572
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 9 additions and 7 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,

View File

@ -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)