mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 01:54:44 +00:00
hv: use int32_t replace int
Since it's typedef in "include/lib/types.h" Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -28,12 +28,12 @@ enum IDX_CMD {
|
||||
IDX_MAX_CMD,
|
||||
};
|
||||
|
||||
static void handle_cmd(const char *cmd, int len)
|
||||
static void handle_cmd(const char *cmd, int32_t len)
|
||||
{
|
||||
int i;
|
||||
int32_t i;
|
||||
|
||||
for (i = 0; i < IDX_MAX_CMD; i++) {
|
||||
int tmp = strnlen_s(cmd_list[i], MAX_CMD_LEN);
|
||||
int32_t tmp = strnlen_s(cmd_list[i], MAX_CMD_LEN);
|
||||
|
||||
/*cmd prefix should be same with one in cmd_list */
|
||||
if (len < tmp)
|
||||
@@ -62,7 +62,7 @@ static void handle_cmd(const char *cmd, int len)
|
||||
}
|
||||
}
|
||||
|
||||
int parse_hv_cmdline(void)
|
||||
int32_t parse_hv_cmdline(void)
|
||||
{
|
||||
const char *start;
|
||||
const char *end;
|
||||
|
||||
Reference in New Issue
Block a user