From b736b5d45041387c8d51a5a8712070633d7967b9 Mon Sep 17 00:00:00 2001 From: uwe Date: Fri, 13 Jun 2003 12:30:04 +0000 Subject: [PATCH] Drop __P(). Drop redundant prototypes that we either don't need or get from anyway. Consistently use ANSI style function definitions (most functions already were in ANSI style). Generated object file is not changed. --- .../netwinder/netwinder/netwinder_machdep.c | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/sys/arch/netwinder/netwinder/netwinder_machdep.c b/sys/arch/netwinder/netwinder/netwinder_machdep.c index e0cfbdf0e67c..ecc79cbd01b1 100644 --- a/sys/arch/netwinder/netwinder/netwinder_machdep.c +++ b/sys/arch/netwinder/netwinder/netwinder_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: netwinder_machdep.c,v 1.52 2003/06/12 02:41:32 uwe Exp $ */ +/* $NetBSD: netwinder_machdep.c,v 1.53 2003/06/13 12:30:04 uwe Exp $ */ /* * Copyright (c) 1997,1998 Mark Brinicombe. @@ -168,18 +168,12 @@ struct user *proc0paddr; /* Prototypes */ -void consinit __P((void)); +void consinit(void); +void process_kernel_args(char *); +void data_abort_handler(trapframe_t *); +void prefetch_abort_handler(trapframe_t *); +void undefinedinstruction_bounce(trapframe_t *); -int fcomcnattach __P((u_int iobase, int rate,tcflag_t cflag)); -int fcomcndetach __P((void)); - -void process_kernel_args __P((char *)); -void data_abort_handler __P((trapframe_t *frame)); -void prefetch_abort_handler __P((trapframe_t *frame)); -void undefinedinstruction_bounce __P((trapframe_t *frame)); -extern void configure __P((void)); -extern void parse_mi_bootargs __P((char *args)); -extern void dumpsys __P((void)); /* A load of console goo. */ #include "vga.h" @@ -233,9 +227,7 @@ static void kcomcnputc(dev_t, int); */ void -cpu_reboot(howto, bootstr) - int howto; - char *bootstr; +cpu_reboot(int howto, char *bootstr) { #ifdef DIAGNOSTIC /* info */ @@ -261,9 +253,10 @@ cpu_reboot(howto, bootstr) /* * If RB_NOSYNC was not specified sync the discs. - * Note: Unless cold is set to 1 here, syslogd will die during the unmount. - * It looks like syslogd is getting woken up only to find that it cannot - * page part of the binary in as the filesystem has been unmounted. + * Note: Unless cold is set to 1 here, syslogd will die during + * the unmount. It looks like syslogd is getting woken up + * only to find that it cannot page part of the binary in as + * the filesystem has been unmounted. */ if (!(howto & RB_NOSYNC)) bootsync(); @@ -858,8 +851,7 @@ initarm(void *arg) } void -process_kernel_args(args) - char *args; +process_kernel_args(char *args) { boothowto = 0; @@ -890,7 +882,7 @@ process_kernel_args(args) extern struct bus_space footbridge_pci_io_bs_tag; extern struct bus_space footbridge_pci_mem_bs_tag; -void footbridge_pci_bs_tag_init __P((void)); +extern void footbridge_pci_bs_tag_init(void); void consinit(void)