From 3a99fdb32897405fac00485bb36889b07e5dfd76 Mon Sep 17 00:00:00 2001 From: nakayama Date: Wed, 11 Mar 2009 13:29:44 +0000 Subject: Avoid "warning: cast from pointer to integer of different size" on 32-bit sparc64 kernels. --- sys/ddb/db_command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index fe1ae2a9077..16aa5a3d91a 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_command.c,v 1.129 2009/03/07 22:02:17 ad Exp $ */ +/* $NetBSD: db_command.c,v 1.130 2009/03/11 13:29:44 nakayama Exp $ */ /* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University @@ -58,7 +58,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.129 2009/03/07 22:02:17 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.130 2009/03/11 13:29:44 nakayama Exp $"); #ifdef _KERNEL_OPT #include "opt_aio.h" @@ -972,7 +972,7 @@ db_map_print_cmd(db_expr_t addr, bool have_addr, db_expr_t count, full = true; if (have_addr == false) - addr = (db_expr_t)db_read_ptr("kernel_map"); + addr = (db_expr_t)(uintptr_t)db_read_ptr("kernel_map"); #ifdef _KERNEL uvm_map_printit((struct vm_map *)(uintptr_t) addr, full, db_printf); -- cgit