HV:fix rest integer violations

Fix integer related violations.
V1->V2:
  clean all memset/calloc integer violations excpet bsp/boot directory

Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2018-08-01 12:08:04 +08:00
committed by lijinxia
parent 56904bc235
commit 1664e0c842
11 changed files with 24 additions and 24 deletions

View File

@@ -450,7 +450,7 @@ void shell_init(void)
(void)strcpy_s((void *)p_shell->name, SHELL_NAME_MAX_LEN, "Serial");
/* Zero fill the input buffer */
(void)memset((void *)p_shell->input_line[p_shell->input_line_active], 0,
(void)memset((void *)p_shell->input_line[p_shell->input_line_active], 0U,
SHELL_CMD_MAX_LEN + 1U);
}
@@ -1045,7 +1045,7 @@ END:
int shell_show_ioapic_info(__unused int argc, __unused char **argv)
{
char *temp_str = alloc_pages(2);
char *temp_str = alloc_pages(2U);
if (temp_str == NULL) {
return -ENOMEM;
@@ -1061,7 +1061,7 @@ int shell_show_ioapic_info(__unused int argc, __unused char **argv)
int shell_show_vmexit_profile(__unused int argc, __unused char **argv)
{
char *temp_str = alloc_pages(2);
char *temp_str = alloc_pages(2U);
if (temp_str == NULL) {
return -ENOMEM;