Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Cast to uintptr_t before casting to void *; fix...
details: https://anonhg.NetBSD.org/src/rev/096fe35af432
branches: trunk
changeset: 358086:096fe35af432
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Dec 10 18:52:41 2017 +0000
description:
Cast to uintptr_t before casting to void *; fix a warning on i386
diffstat:
sys/dev/acpi/acpi_util.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 56ddcd82b1be -r 096fe35af432 sys/dev/acpi/acpi_util.c
--- a/sys/dev/acpi/acpi_util.c Sun Dec 10 17:52:13 2017 +0000
+++ b/sys/dev/acpi/acpi_util.c Sun Dec 10 18:52:41 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_util.c,v 1.9 2017/12/10 16:51:30 bouyer Exp $ */
+/* $NetBSD: acpi_util.c,v 1.10 2017/12/10 18:52:41 bouyer Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.9 2017/12/10 16:51:30 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.10 2017/12/10 18:52:41 bouyer Exp $");
#include <sys/param.h>
#include <sys/kmem.h>
@@ -520,7 +520,7 @@
unsigned int (*intr)(void *), void *iarg)
{
ACPI_STATUS rv;
- ACPI_HANDLE hdl = (void *)c;
+ ACPI_HANDLE hdl = (void *)(uintptr_t)c;
struct acpi_resources res;
struct acpi_irq *irq;
struct acpi_irq_handler *aih = NULL;
Home |
Main Index |
Thread Index |
Old Index