Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 apply some (uintptr_t) between poin...



details:   https://anonhg.NetBSD.org/src/rev/04eea9a129d8
branches:  trunk
changeset: 767123:04eea9a129d8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 09 15:03:35 2011 +0000

description:
apply some (uintptr_t) between pointer and int assignments.

diffstat:

 sys/arch/sparc64/sparc64/autoconf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a497d39cb447 -r 04eea9a129d8 sys/arch/sparc64/sparc64/autoconf.c
--- a/sys/arch/sparc64/sparc64/autoconf.c       Sat Jul 09 15:02:49 2011 +0000
+++ b/sys/arch/sparc64/sparc64/autoconf.c       Sat Jul 09 15:03:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.182 2011/07/01 18:49:24 dyoung Exp $ */
+/*     $NetBSD: autoconf.c,v 1.183 2011/07/09 15:03:35 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.182 2011/07/01 18:49:24 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.183 2011/07/09 15:03:35 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1088,7 +1088,7 @@
                        gfb_cb.gcc_cookie = 
                            (void *)(intptr_t)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);
                }



Home | Main Index | Thread Index | Old Index