Make the signature argument to get_table() const. Should fix the GCC4 build.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41433 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2011-05-11 09:05:43 +00:00
parent ca67ddb353
commit 407af313ca
3 changed files with 6 additions and 6 deletions

View File

@ -253,7 +253,7 @@ struct acpi_module_info {
status_t (*reboot)(void);
/* Table Access */
status_t (*get_table)(char *signature, uint32 instance,
status_t (*get_table)(const char *signature, uint32 instance,
void **tableHeader);
};

View File

@ -714,10 +714,10 @@ reboot(void)
status_t
get_table(char* signature, uint32 instance, void** tableHeader)
get_table(const char* signature, uint32 instance, void** tableHeader)
{
return AcpiGetTable(signature, instance, (ACPI_TABLE_HEADER**)tableHeader)
== AE_OK ? B_OK : B_ERROR;
return AcpiGetTable((char*)signature, instance,
(ACPI_TABLE_HEADER**)tableHeader) == AE_OK ? B_OK : B_ERROR;
}

View File

@ -136,7 +136,7 @@ typedef struct acpi_root_info {
status_t (*reboot)(void);
/* Table Access */
status_t (*get_table)(char *signature, uint32 instance,
status_t (*get_table)(const char *signature, uint32 instance,
void **tableHeader);
} acpi_root_info;
@ -215,7 +215,7 @@ status_t enter_sleep_state(uint8 state);
status_t reboot(void);
status_t get_table(char* signature, uint32 instance, void** tableHeader);
status_t get_table(const char* signature, uint32 instance, void** tableHeader);
__END_DECLS