mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +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:
@@ -169,7 +169,7 @@ probe_table(uint64_t address, const char *sig)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void *get_acpi_tbl(char *sig)
|
||||
void *get_acpi_tbl(const char *sig)
|
||||
{
|
||||
struct acpi_table_rsdp *rsdp;
|
||||
struct acpi_table_rsdt *rsdt;
|
||||
|
Reference in New Issue
Block a user