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 Make gcc happy about casts.
details: https://anonhg.NetBSD.org/src/rev/752d18293f22
branches: trunk
changeset: 500078:752d18293f22
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Dec 04 20:33:12 2000 +0000
description:
Make gcc happy about casts.
diffstat:
sys/arch/sparc64/sparc64/clock.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 2eb3f9f385ca -r 752d18293f22 sys/arch/sparc64/sparc64/clock.c
--- a/sys/arch/sparc64/sparc64/clock.c Mon Dec 04 20:31:16 2000 +0000
+++ b/sys/arch/sparc64/sparc64/clock.c Mon Dec 04 20:33:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.33 2000/12/04 16:01:19 fvdl Exp $ */
+/* $NetBSD: clock.c,v 1.34 2000/12/04 20:33:12 fvdl Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -273,7 +273,8 @@
/* We can panic now or take a datafault later... */
if (sbi->si_bh != newaddr)
panic("sbus_wenable: address %p changed to %p\n",
- (void *)sbi->si_bh, (void *)newaddr);
+ (void *)(u_long)sbi->si_bh,
+ (void *)(u_long)newaddr);
}
return (err);
}
@@ -348,7 +349,8 @@
/* We can panic now or take a datafault later... */
if (ebi->ei_bh != newaddr)
panic("ebus_wenable: address %p changed to %p\n",
- (void *)ebi->ei_bh, (void *)newaddr);
+ (void *)(u_long)ebi->ei_bh,
+ (void *)(u_long)newaddr);
}
return (err);
}
Home |
Main Index |
Thread Index |
Old Index