Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ktruss Need to cast to intrptr_t before casting a re...
details: https://anonhg.NetBSD.org/src/rev/3b8e62656515
branches: trunk
changeset: 777719:3b8e62656515
user: matt <matt%NetBSD.org@localhost>
date: Fri Mar 02 16:17:22 2012 +0000
description:
Need to cast to intrptr_t before casting a register_t to void * (since
register_t might be wider than a void *).
diffstat:
usr.bin/ktruss/dump.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 563053e900c7 -r 3b8e62656515 usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c Fri Mar 02 15:49:26 2012 +0000
+++ b/usr.bin/ktruss/dump.c Fri Mar 02 16:17:22 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dump.c,v 1.40 2012/02/29 23:35:49 joerg Exp $ */
+/* $NetBSD: dump.c,v 1.41 2012/03/02 16:17:22 matt Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: dump.c,v 1.40 2012/02/29 23:35:49 joerg Exp $");
+__RCSID("$NetBSD: dump.c,v 1.41 2012/03/02 16:17:22 matt Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -635,7 +635,7 @@
} else
switch (ktr->ktr_code) {
case SYS_mmap:
- wprintf(" = %p", (void *)ret);
+ wprintf(" = %p", (void *)(intptr_t)ret);
break;
default:
wprintf(" = %ld", (long)ret);
Home |
Main Index |
Thread Index |
Old Index