Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc add some (uintptr_t) between pointer ...
details: https://anonhg.NetBSD.org/src/rev/b539b2202439
branches: trunk
changeset: 767006:b539b2202439
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Jul 07 01:26:16 2011 +0000
description:
add some (uintptr_t) between pointer and uint64_t casts
diffstat:
sys/arch/macppc/macppc/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 2f9bc118f706 -r b539b2202439 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c Wed Jul 06 21:36:16 2011 +0000
+++ b/sys/arch/macppc/macppc/machdep.c Thu Jul 07 01:26:16 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.158 2011/06/20 07:18:06 matt Exp $ */
+/* $NetBSD: machdep.c,v 1.159 2011/07/07 01:26:16 mrg Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.158 2011/06/20 07:18:06 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.159 2011/07/07 01:26:16 mrg Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@@ -324,7 +324,7 @@
gfb_cb.gcc_cookie = (void *)console_instance;
gfb_cb.gcc_set_mapreg = of_set_palette;
- cmap_cb = (uint64_t)&gfb_cb;
+ cmap_cb = (uint64_t)(uintptr_t)&gfb_cb;
prop_dictionary_set_uint64(dict, "cmap_callback", cmap_cb);
/* not let's look for backlight control */
@@ -339,7 +339,7 @@
gpc.gpc_cookie = (void *)console_instance;
gpc.gpc_set_parameter = of_set_backlight;
gpc.gpc_get_parameter = of_get_backlight;
- backlight_cb = (uint64_t)&gpc;
+ backlight_cb = (uint64_t)(uintptr_t)&gpc;
prop_dictionary_set_uint64(dict, "backlight_callback",
backlight_cb);
/*
Home |
Main Index |
Thread Index |
Old Index