修正编码规范格式

Change-Id: Ifae824713eb876e7dcb86787bcdbeb39fa9b6693
Signed-off-by: huaqingsimeng <qiukaiqing@huawei.com>
This commit is contained in:
maokelong95 2022-05-30 17:53:30 +08:00
parent 0a52976061
commit ff171c334f
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ tuple<ErrCode, TmpFileSN, UniqueFd> ServiceProxy::GetFileOnServiceEnd()
}
HILOGI("Successful");
return {reply.ReadInt32(),reply.ReadUint32(),UniqueFd(reply.ReadFileDescriptor())};
return {reply.ReadInt32(), reply.ReadUint32(), UniqueFd(reply.ReadFileDescriptor())};
}
ErrCode ServiceProxy::PublishFile(const BFileInfo &fileInfo)

View File

@ -122,7 +122,7 @@ tuple<ErrCode, TmpFileSN, UniqueFd> Service::GetFileOnServiceEnd()
TmpFileSN tmpFileSN = seed++;
string tmpPath = string(SA_ROOT_DIR) + string(SA_TMP_DIR) + to_string(tmpFileSN);
if (access(tmpPath.data(), F_OK) == 0) {
//约束服务启动时清空临时目录,且生成的临时文件名必不重复
// 约束服务启动时清空临时目录,且生成的临时文件名必不重复
throw BError(BError::Codes::SA_BROKEN_ROOT_DIR, "Tmp file to create is existed");
}
UniqueFd fd(open(tmpPath.data(), O_RDWR | O_CREAT, 0600));