mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-02 14:55:39 +00:00
HV:treewide:string assigned to const object
In the hypervisor, some strings are assigned to non const object, this violates MISRA C:2012. Update the type of the object as const type since it always points to string. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
This commit is contained in:
@@ -159,7 +159,7 @@ int shell_init(void)
|
||||
return status;
|
||||
}
|
||||
|
||||
int shell_puts(struct shell *p_shell, char *str_ptr)
|
||||
int shell_puts(struct shell *p_shell, const char *str_ptr)
|
||||
{
|
||||
int status;
|
||||
|
||||
@@ -178,7 +178,7 @@ int shell_puts(struct shell *p_shell, char *str_ptr)
|
||||
return status;
|
||||
}
|
||||
|
||||
int shell_set_name(struct shell *p_shell, char *name)
|
||||
int shell_set_name(struct shell *p_shell, const char *name)
|
||||
{
|
||||
int status;
|
||||
|
||||
|
Reference in New Issue
Block a user