提交 b37b0211 编写于 作者: W wangchen

fix: kora工具检视问题修复

【背景】kora工具检视问题修复

【修改方案】
1,对部分代码问题进行整改

【影响】
对现有的产品编译不会有影响。
Signed-off-by: Nwangchen <wangchen64@huawei.com>
上级 69b1796b
......@@ -142,7 +142,7 @@ static int HieventBufferCopy(unsigned char *dst, unsigned dstLen,
static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen)
{
size_t retval;
int retval;
size_t bufLeft = HIEVENT_LOG_BUFFER - g_hieventDev.headOffset;
if (bufLeft > bufLen) {
retval = HieventBufferCopy(buffer, bufLen, HieventBufferHead(), bufLen);
......@@ -160,7 +160,7 @@ static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen)
static ssize_t HieventRead(struct file *filep, char *buffer, size_t bufLen)
{
size_t retval;
ssize_t retval;
struct HieventEntry header;
(void)filep;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册