fix: 内核告警修复
【背景】 经代码扫描工具检测,内核代码中存在 可以修复的告警 【修改方案】 1.将单语句的if, while等加上括号 2.将C语言风格的类型转换变为C++风格 【影响】 对现有的产品编译不会有影响。 Signed-off-by: yinjiaming <yinjiaming@huawei.com> Change-Id: I7d4a04a8904abb3c33e843049bf15f4386d3efd8
This commit is contained in:
@@ -31,9 +31,9 @@
|
||||
#include "It_test_misc.h"
|
||||
#include "sys/utsname.h"
|
||||
|
||||
#define INVALID_ADDR_FIRST_PAGE ((struct utsname *)0x1200000)
|
||||
#define INVALID_ADDR_USER_ADDR ((struct utsname *)0x1000000)
|
||||
#define INVALID_ADDR_KERNEL_READONLY_ADDR ((struct utsname *)0x4016c75c)
|
||||
#define INVALID_ADDR_FIRST_PAGE (reinterpret_cast<struct utsname *>(0x1200000))
|
||||
#define INVALID_ADDR_USER_ADDR (reinterpret_cast<struct utsname *>(0x1000000))
|
||||
#define INVALID_ADDR_KERNEL_READONLY_ADDR (reinterpret_cast<struct utsname *>(0x4016c75c))
|
||||
|
||||
static UINT32 TestCase(VOID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user