Fix lvalue cast.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 15 Feb 2005 19:08:06 +0000 (19:08 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 15 Feb 2005 19:08:06 +0000 (19:08 +0000)
Obtained-from: FreeBSD

sys/i386/acpica5/acpi_wakeup.c
sys/platform/pc32/acpica5/acpi_wakeup.c

index e368089..f6c8912 100644 (file)
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/i386/acpica/acpi_wakeup.c,v 1.33 2004/05/06 02:18:58 njl Exp $
- * $DragonFly: src/sys/i386/acpica5/Attic/acpi_wakeup.c,v 1.5 2004/09/15 16:33:09 joerg Exp $
+ * $DragonFly: src/sys/i386/acpica5/Attic/acpi_wakeup.c,v 1.6 2005/02/15 19:08:06 joerg Exp $
  */
 
 #include <sys/param.h>
@@ -164,14 +164,14 @@ acpi_printcpu(void)
 }
 
 #define WAKECODE_FIXUP(offset, type, val) do   {               \
-       void    **addr;                                         \
-       addr = (void **)(sc->acpi_wakeaddr + offset);           \
-       (type *)*addr = val;                                    \
+       type    *addr;                                          \
+       addr = (type *)(sc->acpi_wakeaddr + offset);            \
+       *addr = val;                                            \
 } while (0)
 
 #define WAKECODE_BCOPY(offset, type, val) do   {               \
-       void    **addr;                                         \
-       addr = (void **)(sc->acpi_wakeaddr + offset);           \
+       void    *addr;                                          \
+       addr = (void *)(sc->acpi_wakeaddr + offset);            \
        bcopy(&(val), addr, sizeof(type));                      \
 } while (0)
 
index b00d508..c3868b1 100644 (file)
@@ -25,7 +25,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/i386/acpica/acpi_wakeup.c,v 1.33 2004/05/06 02:18:58 njl Exp $
- * $DragonFly: src/sys/platform/pc32/acpica5/acpi_wakeup.c,v 1.5 2004/09/15 16:33:09 joerg Exp $
+ * $DragonFly: src/sys/platform/pc32/acpica5/acpi_wakeup.c,v 1.6 2005/02/15 19:08:06 joerg Exp $
  */
 
 #include <sys/param.h>
@@ -164,14 +164,14 @@ acpi_printcpu(void)
 }
 
 #define WAKECODE_FIXUP(offset, type, val) do   {               \
-       void    **addr;                                         \
-       addr = (void **)(sc->acpi_wakeaddr + offset);           \
-       (type *)*addr = val;                                    \
+       type    *addr;                                          \
+       addr = (type *)(sc->acpi_wakeaddr + offset);            \
+       *addr = val;                                            \
 } while (0)
 
 #define WAKECODE_BCOPY(offset, type, val) do   {               \
-       void    **addr;                                         \
-       addr = (void **)(sc->acpi_wakeaddr + offset);           \
+       void    *addr;                                          \
+       addr = (void *)(sc->acpi_wakeaddr + offset);            \
        bcopy(&(val), addr, sizeof(type));                      \
 } while (0)