From a683a1b3c2d93f1697f27b47a2797a54a7f966bb Mon Sep 17 00:00:00 2001 From: tsutsui Date: Thu, 21 Feb 2008 14:32:31 +0000 Subject: [PATCH] u_int32_t -> uint32_t, remove __P(), ANSIfy. --- sys/arch/newsmips/stand/bootxx/bootxx.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/arch/newsmips/stand/bootxx/bootxx.c b/sys/arch/newsmips/stand/bootxx/bootxx.c index 7513eb4bd60c..130d4e690bf8 100644 --- a/sys/arch/newsmips/stand/bootxx/bootxx.c +++ b/sys/arch/newsmips/stand/bootxx/bootxx.c @@ -1,4 +1,4 @@ -/* $NetBSD: bootxx.c,v 1.7 2005/12/11 12:18:25 christos Exp $ */ +/* $NetBSD: bootxx.c,v 1.8 2008/02/21 14:32:31 tsutsui Exp $ */ /*- * Copyright (C) 1999 Tsubai Masanari. All rights reserved. @@ -44,9 +44,8 @@ struct shared_bbinfo bbinfo = { #define DEFAULT_ENTRY_POINT 0xa0700000 #endif -void bootxx __P((u_int32_t, u_int32_t, uint32_t, u_int32_t, u_int32_t, - u_int32_t)); -void (*entry_point) __P((u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *)) = +void bootxx(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t); +void (*entry_point)(uint32_t, uint32_t, uint32_t, uint32_t, void *) = (void *)DEFAULT_ENTRY_POINT; #ifdef BOOTXX_DEBUG @@ -60,8 +59,8 @@ struct apbus_sysinfo *_sip; int apbus = 0; void -bootxx(a0, a1, a2, a3, a4, a5) - u_int32_t a0, a1, a2, a3, a4, a5; +bootxx(uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3, uint32_t a4, + uint32_t a5) { int fd, blk, bs; int ctlr, unit, part, type; @@ -145,8 +144,7 @@ bootxx(a0, a1, a2, a3, a4, a5) } void -putchar(x) - int x; +putchar(int x) { char c = x;