summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-05-28 02:50:43 +0000
committermarcel <marcel@FreeBSD.org>2004-05-28 02:50:43 +0000
commit99e71f8aadcc02151f0f0f744526258b8ab1a996 (patch)
tree4196f5d7e689a2c52f5f9e802087d29f5c28a108 /sys/dev/acpica
parent32a2cb42505b08e87eea52b1bf5062b24bafa3fc (diff)
downloadFreeBSD-src-99e71f8aadcc02151f0f0f744526258b8ab1a996.zip
FreeBSD-src-99e71f8aadcc02151f0f0f744526258b8ab1a996.tar.gz
Fix LP64 environments: cast a pointer type to intptr_t before casting
to int and vice versa.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 9a80c9a..d3b7529 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -1877,7 +1877,7 @@ acpi_wake_limit(ACPI_HANDLE h, UINT32 level, void *context, void **status)
if (acpi_parse_prw(h, &prw) != 0)
return (AE_OK);
- sstate = (int)context;
+ sstate = (int)(intptr_t)context;
if (sstate > prw.lowest_wake)
AcpiDisableGpe(prw.gpe_handle, prw.gpe_bit, ACPI_NOT_ISR);
@@ -1892,7 +1892,7 @@ acpi_wake_limit_walk(int sstate)
if (ACPI_SUCCESS(AcpiGetHandle(ACPI_ROOT_OBJECT, "\\_SB_", &sb_handle)))
AcpiWalkNamespace(ACPI_TYPE_ANY, sb_handle, 100,
- acpi_wake_limit, (void *)sstate, NULL);
+ acpi_wake_limit, (void *)(intptr_t)sstate, NULL);
return (0);
}
OpenPOWER on IntegriCloud