diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 03:16:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-14 03:16:15 +0000 |
commit | e63dc855fe4ff1aa0029ebf9813134860a34ccdf (patch) | |
tree | c2aa960c67a99a878c8902943399029fa598683f /sys/arch | |
parent | 71eb96ce8a9190e7ffeccbabd7a5ec4f3b4fc72f (diff) |
Final __P removal plus some cosmetic fixups
Diffstat (limited to 'sys/arch')
230 files changed, 759 insertions, 778 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c index ff4d99210e3..5b88097faaa 100644 --- a/sys/arch/alpha/alpha/disksubr.c +++ b/sys/arch/alpha/alpha/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.34 2002/03/14 01:26:26 millert Exp $ */ +/* $OpenBSD: disksubr.c,v 1.35 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -68,16 +68,16 @@ #if defined(DISKLABEL_I386) || defined(DISKLABEL_ALPHA) || defined(DISKLABEL_AMIGA) || defined(DISKLABEL_ALL) void swapdisklabel(struct disklabel *d); -char *readbsdlabel __P((struct buf *, void (*)(struct buf *), int, int, - int, int, struct disklabel *, int)); +char *readbsdlabel(struct buf *, void (*)(struct buf *), int, int, + int, int, struct disklabel *, int); #endif #if defined(DISKLABEL_I386) || defined(DISKLABEL_ALL) -char *readdoslabel __P((struct buf *, void (*)(struct buf *), - struct disklabel *, struct cpu_disklabel *, int *, int *, int)); +char *readdoslabel(struct buf *, void (*)(struct buf *), + struct disklabel *, struct cpu_disklabel *, int *, int *, int); #endif #if defined(DISKLABEL_AMIGA) || defined(DISKLABEL_ALL) -char *readamigalabel __P((struct buf *, void (*)(struct buf *), - struct disklabel *, struct cpu_disklabel *, int)); +char *readamigalabel(struct buf *, void (*)(struct buf *), + struct disklabel *, struct cpu_disklabel *, int); #endif static enum disklabel_tag probe_order[] = { LABELPROBES, -1 }; diff --git a/sys/arch/alpha/eisa/eisa_machdep.h b/sys/arch/alpha/eisa/eisa_machdep.h index 52ac240c6c5..96b8165a4a1 100644 --- a/sys/arch/alpha/eisa/eisa_machdep.h +++ b/sys/arch/alpha/eisa/eisa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: eisa_machdep.h,v 1.4 2002/03/14 01:26:26 millert Exp $ */ +/* $OpenBSD: eisa_machdep.h,v 1.5 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: eisa_machdep.h,v 1.1 1996/04/12 05:39:51 cgd Exp $ */ /* @@ -43,8 +43,8 @@ struct alpha_eisa_chipset { int (*ec_intr_map)(void *, u_int, eisa_intr_handle_t *); const char *(*ec_intr_string)(void *, eisa_intr_handle_t); - void *(*ec_intr_establish) __P((void *, eisa_intr_handle_t, - int, int, int (*)(void *), void *, char *)); + void *(*ec_intr_establish)(void *, eisa_intr_handle_t, + int, int, int (*)(void *), void *, char *); void (*ec_intr_disestablish)(void *, void *); }; diff --git a/sys/arch/alpha/include/intr.h b/sys/arch/alpha/include/intr.h index 2bc797a9b03..f030a102889 100644 --- a/sys/arch/alpha/include/intr.h +++ b/sys/arch/alpha/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.13 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: intr.h,v 1.14 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: intr.h,v 1.26 2000/06/03 20:47:41 thorpej Exp $ */ /*- @@ -207,7 +207,7 @@ struct alpha_soft_intr { unsigned long softintr_ipl; }; -void *softintr_establish __P((int, void (*)(void *), void *)); +void *softintr_establish(int, void (*)(void *), void *); void softintr_disestablish(void *); void softintr_init(void); void softintr_dispatch(void); @@ -229,8 +229,8 @@ extern struct alpha_soft_intrhand *softclock_intrhand; struct alpha_shared_intr *alpha_shared_intr_alloc(unsigned int); int alpha_shared_intr_dispatch(struct alpha_shared_intr *, unsigned int); -void *alpha_shared_intr_establish __P((struct alpha_shared_intr *, - unsigned int, int, int, int (*)(void *), void *, const char *)); +void *alpha_shared_intr_establish(struct alpha_shared_intr *, + unsigned int, int, int, int (*)(void *), void *, const char *); void alpha_shared_intr_disestablish(struct alpha_shared_intr *, void *, const char *); int alpha_shared_intr_get_sharetype(struct alpha_shared_intr *, diff --git a/sys/arch/alpha/isa/isa_machdep.h b/sys/arch/alpha/isa/isa_machdep.h index a2921e45875..55181455db8 100644 --- a/sys/arch/alpha/isa/isa_machdep.h +++ b/sys/arch/alpha/isa/isa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.h,v 1.11 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: isa_machdep.h,v 1.12 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: isa_machdep.h,v 1.3 1996/11/19 04:53:07 cgd Exp $ */ /* @@ -38,8 +38,8 @@ struct alpha_isa_chipset { void (*ic_attach_hook)(struct device *, struct device *, struct isabus_attach_args *); - void *(*ic_intr_establish) __P((void *, int, int, int, - int (*)(void *), void *, char *)); + void *(*ic_intr_establish)(void *, int, int, int, + int (*)(void *), void *, char *); void (*ic_intr_disestablish)(void *, void *); int (*ic_intr_alloc)(isa_chipset_tag_t *, int, int, int *); }; diff --git a/sys/arch/alpha/pci/pci_2100_a50.c b/sys/arch/alpha/pci/pci_2100_a50.c index 0da6944a7b1..7183e73e66f 100644 --- a/sys/arch/alpha/pci/pci_2100_a50.c +++ b/sys/arch/alpha/pci/pci_2100_a50.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_2100_a50.c,v 1.18 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_2100_a50.c,v 1.19 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_2100_a50.c,v 1.12 1996/11/13 21:13:29 cgd Exp $ */ /* @@ -56,8 +56,8 @@ int dec_2100_a50_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *dec_2100_a50_intr_string(void *, pci_intr_handle_t); int dec_2100_a50_intr_line(void *, pci_intr_handle_t); -void *dec_2100_a50_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *dec_2100_a50_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void dec_2100_a50_intr_disestablish(void *, void *); #define APECS_SIO_DEVICE 7 /* XXX */ diff --git a/sys/arch/alpha/pci/pci_550.c b/sys/arch/alpha/pci/pci_550.c index c237901f380..2065d7aacdc 100644 --- a/sys/arch/alpha/pci/pci_550.c +++ b/sys/arch/alpha/pci/pci_550.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_550.c,v 1.8 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_550.c,v 1.9 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_550.c,v 1.18 2000/06/29 08:58:48 mrg Exp $ */ /*- @@ -99,12 +99,12 @@ int dec_550_intr_map(void *, pcitag_t, int, int, const char *dec_550_intr_string(void *, pci_intr_handle_t); int dec_550_intr_line(void *, pci_intr_handle_t); const struct evcnt *dec_550_intr_evcnt(void *, pci_intr_handle_t); -void *dec_550_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *dec_550_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void dec_550_intr_disestablish(void *, void *); -void *dec_550_pciide_compat_intr_establish __P((void *, struct device *, - struct pci_attach_args *, int, int (*)(void *), void *)); +void *dec_550_pciide_compat_intr_establish(void *, struct device *, + struct pci_attach_args *, int, int (*)(void *), void *); void dec_550_pciide_compat_intr_disestablish(void *, void *); #define DEC_550_PCI_IRQ_BEGIN 8 diff --git a/sys/arch/alpha/pci/pci_6600.c b/sys/arch/alpha/pci/pci_6600.c index 1fe9051da1f..bebcd2eb766 100644 --- a/sys/arch/alpha/pci/pci_6600.c +++ b/sys/arch/alpha/pci/pci_6600.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_6600.c,v 1.8 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_6600.c,v 1.9 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_6600.c,v 1.5 2000/06/06 00:50:15 thorpej Exp $ */ /*- @@ -77,14 +77,14 @@ static char *irqtype = "6600 irq"; static struct tsp_config *sioprimary; void dec_6600_intr_disestablish(void *, void *); -void *dec_6600_intr_establish __P(( - void *, pci_intr_handle_t, int, int (*func)(void *), void *, char *)); +void *dec_6600_intr_establish(void *, pci_intr_handle_t, int, + int (*func)(void *), void *, char *); const char *dec_6600_intr_string(void *, pci_intr_handle_t); int dec_6600_intr_line(void *, pci_intr_handle_t); const struct evcnt *dec_6600_intr_evcnt(void *, pci_intr_handle_t); int dec_6600_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); -void *dec_6600_pciide_compat_intr_establish __P((void *, struct device *, - struct pci_attach_args *, int, int (*)(void *), void *)); +void *dec_6600_pciide_compat_intr_establish(void *, struct device *, + struct pci_attach_args *, int, int (*)(void *), void *); void dec_6600_pciide_compat_intr_disestablish(void *, void *); struct alpha_shared_intr *dec_6600_pci_intr; diff --git a/sys/arch/alpha/pci/pci_axppci_33.c b/sys/arch/alpha/pci/pci_axppci_33.c index a9886b4e497..dd129f525f1 100644 --- a/sys/arch/alpha/pci/pci_axppci_33.c +++ b/sys/arch/alpha/pci/pci_axppci_33.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_axppci_33.c,v 1.16 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_axppci_33.c,v 1.17 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_axppci_33.c,v 1.10 1996/11/13 21:13:29 cgd Exp $ */ /* @@ -56,8 +56,8 @@ int dec_axppci_33_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *dec_axppci_33_intr_string(void *, pci_intr_handle_t); int dec_axppci_33_intr_line(void *, pci_intr_handle_t); -void *dec_axppci_33_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *dec_axppci_33_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void dec_axppci_33_intr_disestablish(void *, void *); #define LCA_SIO_DEVICE 7 /* XXX */ diff --git a/sys/arch/alpha/pci/pci_eb164.c b/sys/arch/alpha/pci/pci_eb164.c index 6b49fb3de66..a26f1bd4e4c 100644 --- a/sys/arch/alpha/pci/pci_eb164.c +++ b/sys/arch/alpha/pci/pci_eb164.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_eb164.c,v 1.13 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_eb164.c,v 1.14 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_eb164.c,v 1.27 2000/06/06 00:50:15 thorpej Exp $ */ /*- @@ -99,12 +99,12 @@ int dec_eb164_intr_map(void *, pcitag_t, int, int, const char *dec_eb164_intr_string(void *, pci_intr_handle_t); int dec_eb164_intr_line(void *, pci_intr_handle_t); const struct evcnt *dec_eb164_intr_evcnt(void *, pci_intr_handle_t); -void *dec_eb164_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *dec_eb164_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void dec_eb164_intr_disestablish(void *, void *); -void *dec_eb164_pciide_compat_intr_establish __P((void *, struct device *, - struct pci_attach_args *, int, int (*)(void *), void *)); +void *dec_eb164_pciide_compat_intr_establish(void *, struct device *, + struct pci_attach_args *, int, int (*)(void *), void *); void dec_eb164_pciide_compat_intr_disestablish(void *, void *); #define EB164_SIO_IRQ 4 diff --git a/sys/arch/alpha/pci/pci_eb64plus.c b/sys/arch/alpha/pci/pci_eb64plus.c index fef0dcc99b8..f342016fba1 100644 --- a/sys/arch/alpha/pci/pci_eb64plus.c +++ b/sys/arch/alpha/pci/pci_eb64plus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_eb64plus.c,v 1.2 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_eb64plus.c,v 1.3 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_eb64plus.c,v 1.10 2001/07/27 00:25:20 thorpej Exp $ */ /*- @@ -95,8 +95,8 @@ int dec_eb64plus_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *dec_eb64plus_intr_string(void *, pci_intr_handle_t); const struct evcnt *dec_eb64plus_intr_evcnt(void *, pci_intr_handle_t); -void *dec_eb64plus_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *dec_eb64plus_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void dec_eb64plus_intr_disestablish(void *, void *); #define EB64PLUS_MAX_IRQ 32 diff --git a/sys/arch/alpha/pci/pci_kn20aa.c b/sys/arch/alpha/pci/pci_kn20aa.c index de876552622..51617e4c8db 100644 --- a/sys/arch/alpha/pci/pci_kn20aa.c +++ b/sys/arch/alpha/pci/pci_kn20aa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_kn20aa.c,v 1.17 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_kn20aa.c,v 1.18 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_kn20aa.c,v 1.21 1996/11/17 02:05:27 cgd Exp $ */ /* @@ -62,8 +62,8 @@ int dec_kn20aa_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *dec_kn20aa_intr_string(void *, pci_intr_handle_t); int dec_kn20aa_intr_line(void *, pci_intr_handle_t); -void *dec_kn20aa_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *dec_kn20aa_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void dec_kn20aa_intr_disestablish(void *, void *); #define KN20AA_PCEB_IRQ 31 diff --git a/sys/arch/alpha/pci/pci_machdep.h b/sys/arch/alpha/pci/pci_machdep.h index e2ac0b6ed45..807dc3829cf 100644 --- a/sys/arch/alpha/pci/pci_machdep.h +++ b/sys/arch/alpha/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.18 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.19 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: pci_machdep.h,v 1.6 1996/11/19 04:49:21 cgd Exp $ */ /* @@ -64,14 +64,14 @@ struct alpha_pci_chipset { pci_intr_handle_t *); const char *(*pc_intr_string)(void *, pci_intr_handle_t); int (*pc_intr_line)(void *, pci_intr_handle_t); - void *(*pc_intr_establish) __P((void *, pci_intr_handle_t, - int, int (*)(void *), void *, char *)); + void *(*pc_intr_establish)(void *, pci_intr_handle_t, + int, int (*)(void *), void *, char *); void (*pc_intr_disestablish)(void *, void *); /* alpha-specific */ - void *(*pc_pciide_compat_intr_establish) __P((void *, + void *(*pc_pciide_compat_intr_establish)(void *, struct device *, struct pci_attach_args *, int, - int (*)(void *), void *)); + int (*)(void *), void *); void (*pc_pciide_compat_intr_disestablish)(void *, void *); char *pc_name; /* PCI chipset name */ diff --git a/sys/arch/alpha/pci/siovar.h b/sys/arch/alpha/pci/siovar.h index 4cd708d8111..e8798963ec3 100644 --- a/sys/arch/alpha/pci/siovar.h +++ b/sys/arch/alpha/pci/siovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: siovar.h,v 1.10 2002/03/14 01:26:27 millert Exp $ */ +/* $OpenBSD: siovar.h,v 1.11 2002/03/14 03:15:50 millert Exp $ */ /* $NetBSD: siovar.h,v 1.5 1996/10/23 04:12:34 cgd Exp $ */ /* @@ -33,8 +33,8 @@ void sio_iointr(void *framep, unsigned long vec); const char *sio_intr_string(void *, int); int sio_intr_line(void *, int); -void *sio_intr_establish __P((void *, int, int, int, int (*)(void *), - void *, char *)); +void *sio_intr_establish(void *, int, int, int, int (*)(void *), + void *, char *); void sio_intr_disestablish(void *, void *); #ifdef EVCNT_COUNTERS diff --git a/sys/arch/alpha/stand/netboot/dev_net.c b/sys/arch/alpha/stand/netboot/dev_net.c index b3c533766d9..eee6ab71730 100644 --- a/sys/arch/alpha/stand/netboot/dev_net.c +++ b/sys/arch/alpha/stand/netboot/dev_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_net.c,v 1.2 1997/05/05 06:02:00 millert Exp $ */ +/* $OpenBSD: dev_net.c,v 1.3 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: dev_net.c,v 1.4 1997/04/06 08:41:24 cgd Exp $ */ /* @@ -107,7 +107,7 @@ net_open(struct open_file *f, ...) int error = 0; va_start(ap, f); - devname = va_arg(ap, char*); + devname = va_arg(ap, char *); va_end(ap); #ifdef NETIF_DEBUG diff --git a/sys/arch/alpha/tc/cfb.c b/sys/arch/alpha/tc/cfb.c index 54e90367a86..a6b01de3e4b 100644 --- a/sys/arch/alpha/tc/cfb.c +++ b/sys/arch/alpha/tc/cfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfb.c,v 1.13 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: cfb.c,v 1.14 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: cfb.c,v 1.7 1996/12/05 01:39:39 cgd Exp $ */ /* @@ -103,10 +103,10 @@ paddr_t cfbmmap(void *, off_t, int); int cfbintr(void *); static int cfb_alloc_screen(void *, const struct wsscreen_descr *, - void **, int *, int *, long *); + void **, int *, int *, long *); static void cfb_free_screen(void *, void *); -static int cfb_show_screen __P((void *, void *, int, - void (*) (void *, int, int), void *)); +static int cfb_show_screen(void *, void *, int, + void (*) (void *, int, int), void *); struct wsdisplay_accessops cfb_accessops = { cfbioctl, diff --git a/sys/arch/alpha/tc/sfb.c b/sys/arch/alpha/tc/sfb.c index e4498562ff2..5cd3fbc0021 100644 --- a/sys/arch/alpha/tc/sfb.c +++ b/sys/arch/alpha/tc/sfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sfb.c,v 1.13 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: sfb.c,v 1.14 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: sfb.c,v 1.7 1996/12/05 01:39:44 cgd Exp $ */ /* @@ -101,10 +101,10 @@ int sfbioctl(void *, u_long, caddr_t, int, struct proc *); paddr_t sfbmmap(void *, off_t, int); static int sfb_alloc_screen(void *, const struct wsscreen_descr *, - void **, int *, int *, long *); + void **, int *, int *, long *); static void sfb_free_screen(void *, void *); -static int sfb_show_screen __P((void *, void *, int, - void (*) (void *, int, int), void *)); +static int sfb_show_screen(void *, void *, int, + void (*) (void *, int, int), void *); #if 0 void sfb_blank(struct sfb_devconfig *); diff --git a/sys/arch/alpha/tc/tc_3000_300.c b/sys/arch/alpha/tc/tc_3000_300.c index abf79b63b3f..81341c2842c 100644 --- a/sys/arch/alpha/tc/tc_3000_300.c +++ b/sys/arch/alpha/tc/tc_3000_300.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_300.c,v 1.7 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: tc_3000_300.c,v 1.8 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: tc_3000_300.c,v 1.12 1996/10/13 03:00:37 christos Exp $ */ /* @@ -44,8 +44,8 @@ #include <alpha/tc/ioasicreg.h> void tc_3000_300_intr_setup(void); -void tc_3000_300_intr_establish __P((struct device *, void *, - tc_intrlevel_t, int (*)(void *), void *)); +void tc_3000_300_intr_establish(struct device *, void *, + tc_intrlevel_t, int (*)(void *), void *); void tc_3000_300_intr_disestablish(struct device *, void *); void tc_3000_300_iointr(void *, unsigned long); diff --git a/sys/arch/alpha/tc/tc_3000_500.c b/sys/arch/alpha/tc/tc_3000_500.c index 7e1dce6116f..79c987a8b27 100644 --- a/sys/arch/alpha/tc/tc_3000_500.c +++ b/sys/arch/alpha/tc/tc_3000_500.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_3000_500.c,v 1.8 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: tc_3000_500.c,v 1.9 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: tc_3000_500.c,v 1.12 1996/11/15 23:59:00 cgd Exp $ */ /* @@ -43,8 +43,8 @@ #include <alpha/tc/tc_3000_500.h> void tc_3000_500_intr_setup(void); -void tc_3000_500_intr_establish __P((struct device *, void *, - tc_intrlevel_t, int (*)(void *), void *)); +void tc_3000_500_intr_establish(struct device *, void *, + tc_intrlevel_t, int (*)(void *), void *); void tc_3000_500_intr_disestablish(struct device *, void *); void tc_3000_500_iointr(void *, unsigned long); diff --git a/sys/arch/alpha/tc/tc_conf.h b/sys/arch/alpha/tc/tc_conf.h index cb5eb0a89dd..a1c30c00cb2 100644 --- a/sys/arch/alpha/tc/tc_conf.h +++ b/sys/arch/alpha/tc/tc_conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tc_conf.h,v 1.5 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: tc_conf.h,v 1.6 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: tc_conf.h,v 1.3 1996/11/15 23:59:01 cgd Exp $ */ /* @@ -36,8 +36,8 @@ extern void tc_3000_500_intr_setup(void); extern void tc_3000_500_iointr(void *, unsigned long); -extern void tc_3000_500_intr_establish __P((struct device *, void *, - tc_intrlevel_t, int (*)(void *), void *)); +extern void tc_3000_500_intr_establish(struct device *, void *, + tc_intrlevel_t, int (*)(void *), void *); extern void tc_3000_500_intr_disestablish(struct device *, void *); extern int tc_3000_500_nslots; @@ -52,8 +52,8 @@ extern struct tc_builtin tc_3000_500_nographics_builtins[]; extern void tc_3000_300_intr_setup(void); extern void tc_3000_300_iointr(void *, unsigned long); -extern void tc_3000_300_intr_establish __P((struct device *, void *, - tc_intrlevel_t, int (*)(void *), void *)); +extern void tc_3000_300_intr_establish(struct device *, void *, + tc_intrlevel_t, int (*)(void *), void *); extern void tc_3000_300_intr_disestablish(struct device *, void *); extern int tc_3000_300_nslots; diff --git a/sys/arch/alpha/tc/tcdsvar.h b/sys/arch/alpha/tc/tcdsvar.h index e22a50099ea..d9de6cf829c 100644 --- a/sys/arch/alpha/tc/tcdsvar.h +++ b/sys/arch/alpha/tc/tcdsvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcdsvar.h,v 1.6 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: tcdsvar.h,v 1.7 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: tcdsvar.h,v 1.5 1996/11/13 21:13:38 cgd Exp $ */ /* @@ -84,8 +84,8 @@ struct tcdsdev_attach_args { /* * TCDS functions. */ -void tcds_intr_establish __P((struct device *, void *, tc_intrlevel_t, - int (*)(void *), void *)); +void tcds_intr_establish(struct device *, void *, tc_intrlevel_t, + int (*)(void *), void *); void tcds_intr_disestablish(struct device *, void *); void tcds_dma_enable(struct tcds_slotconfig *, int); void tcds_scsi_enable(struct tcds_slotconfig *, int); diff --git a/sys/arch/amiga/amiga/amiga_init.c b/sys/arch/amiga/amiga/amiga_init.c index 8253bb6c75d..0b6ceb42fd6 100644 --- a/sys/arch/amiga/amiga/amiga_init.c +++ b/sys/arch/amiga/amiga/amiga_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amiga_init.c,v 1.26 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: amiga_init.c,v 1.27 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: amiga_init.c,v 1.56 1997/06/10 18:22:24 veego Exp $ */ /* @@ -1046,7 +1046,7 @@ static void kernel_image_magic_copy(dest) u_char *dest; { - *((int*)dest) = ncfdev; + *((int *)dest) = ncfdev; dest += 4; bcopy(cfdev, dest, ncfdev * sizeof(struct cfdev) + memlist->m_nseg * sizeof(struct boot_memseg) + 4); diff --git a/sys/arch/amiga/amiga/disksubr.c b/sys/arch/amiga/amiga/disksubr.c index 218a7a8fbf9..61b4f64f1a9 100644 --- a/sys/arch/amiga/amiga/disksubr.c +++ b/sys/arch/amiga/amiga/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.21 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: disksubr.c,v 1.22 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: disksubr.c,v 1.27 1996/10/13 03:06:34 christos Exp $ */ /* @@ -71,8 +71,8 @@ struct rdbmap { u_long rdbchksum(void *); struct adostype getadostype(u_long); -struct rdbmap *getrdbmap __P((dev_t, void (*)(struct buf *), - struct disklabel *, struct cpu_disklabel *)); +struct rdbmap *getrdbmap(dev_t, void (*)(struct buf *), + struct disklabel *, struct cpu_disklabel *); /* XXX unknown function but needed for /sys/scsi to link */ void diff --git a/sys/arch/amiga/dev/aucc.c b/sys/arch/amiga/dev/aucc.c index 73655844593..bfa3ced0112 100644 --- a/sys/arch/amiga/dev/aucc.c +++ b/sys/arch/amiga/dev/aucc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucc.c,v 1.7 2002/03/14 01:26:28 millert Exp $ */ +/* $OpenBSD: aucc.c,v 1.8 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: aucc.c,v 1.22 1998/01/12 10:39:10 thorpej Exp $ */ /* @@ -165,10 +165,8 @@ int aucc_set_out_sr(void *, u_long); int aucc_query_encoding(void *, struct audio_encoding *); int aucc_round_blocksize(void *, int); int aucc_commit_settings(void *); -int aucc_start_output __P((void *, void *, int, void (*)(void *), - void *)); -int aucc_start_input __P((void *, void *, int, void (*)(void *), - void *)); +int aucc_start_output(void *, void *, int, void (*)(void *), void *); +int aucc_start_input(void *, void *, int, void (*)(void *), void *); int aucc_halt_output(void *); int aucc_halt_input(void *); int aucc_getdev(void *, struct audio_device *); diff --git a/sys/arch/amiga/dev/idesc.c b/sys/arch/amiga/dev/idesc.c index 648acdddbf6..4a329b2b90c 100644 --- a/sys/arch/amiga/dev/idesc.c +++ b/sys/arch/amiga/dev/idesc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: idesc.c,v 1.11 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: idesc.c,v 1.12 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: idesc.c,v 1.29 1996/12/23 09:10:12 veego Exp $ */ /* @@ -904,7 +904,7 @@ ideicmd(dev, target, cbuf, clen, buf, len) return (0); case MODE_SENSE: - mdsnbuf = (void*) buf; + mdsnbuf = (void *) buf; bzero(buf, *((u_char *)cbuf + 4)); switch (*((u_char *)cbuf + 2) & 0x3f) { case 4: diff --git a/sys/arch/amiga/dev/sbic.c b/sys/arch/amiga/dev/sbic.c index 29391173c2e..982099b8c57 100644 --- a/sys/arch/amiga/dev/sbic.c +++ b/sys/arch/amiga/dev/sbic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbic.c,v 1.16 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: sbic.c,v 1.17 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: sbic.c,v 1.28 1996/10/13 03:07:29 christos Exp $ */ /* @@ -291,7 +291,7 @@ void sbic_load_ptrs(dev, regs, target, lun) int target, lun; { int s, count; - char* vaddr, * paddr; + char *vaddr, *paddr; struct sbic_acb *acb; SBIC_TRACE(dev); @@ -322,7 +322,7 @@ void sbic_load_ptrs(dev, regs, target, lun) count = acb->sc_kv.dc_count; for(count = (NBPG - ((int)vaddr & PGOFSET)); count < acb->sc_kv.dc_count - && (char*)kvtop(vaddr + count + 4) == paddr + count + 4; + && (char *)kvtop(vaddr + count + 4) == paddr + count + 4; count += NBPG); /* If it's all contiguous... */ if(count > acb->sc_kv.dc_count ) { diff --git a/sys/arch/amiga/dev/sbicreg.h b/sys/arch/amiga/dev/sbicreg.h index a7b08a4dfcb..7fe4c66e855 100644 --- a/sys/arch/amiga/dev/sbicreg.h +++ b/sys/arch/amiga/dev/sbicreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sbicreg.h,v 1.3 1997/01/16 09:25:17 niklas Exp $ */ +/* $OpenBSD: sbicreg.h,v 1.4 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: sbicreg.h,v 1.2 1994/10/26 02:04:40 cgd Exp $ */ /* @@ -404,7 +404,7 @@ typedef volatile sbic_padded_ind_regmap_t *sbic_regmap_p; #define SBIC_LOAD_COMMAND(regs,cmd,cmdsize) do { \ int n=(cmdsize)-1; \ - char *ptr = (char*)(cmd); \ + char *ptr = (char *)(cmd); \ sbic_write_reg(regs,SBIC_cdb1,*ptr++); \ while (n-- > 0) (regs)->sbic_value = *ptr++; \ } while (0) diff --git a/sys/arch/amiga/dev/sbicvar.h b/sys/arch/amiga/dev/sbicvar.h index a08864c0740..07910fd1036 100644 --- a/sys/arch/amiga/dev/sbicvar.h +++ b/sys/arch/amiga/dev/sbicvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sbicvar.h,v 1.5 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: sbicvar.h,v 1.6 2002/03/14 03:15:51 millert Exp $ */ /* $NetBSD: sbicvar.h,v 1.11 1996/04/21 21:12:23 veego Exp $ */ /* @@ -96,7 +96,7 @@ struct sbic_tinfo { int touts; /* #timeouts */ int perrs; /* #parity errors */ int senses; /* #request sense commands sent */ - u_char* bounce; /* Bounce buffer for this device */ + u_char *bounce; /* Bounce buffer for this device */ ushort lubusy; /* What local units/subr. are busy? */ u_char flags; u_char period; /* Period suggestion */ diff --git a/sys/arch/amiga/include/mtpr.h b/sys/arch/amiga/include/mtpr.h index b09eaec9f7c..983b7e55763 100644 --- a/sys/arch/amiga/include/mtpr.h +++ b/sys/arch/amiga/include/mtpr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mtpr.h,v 1.5 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: mtpr.h,v 1.6 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: mtpr.h,v 1.10 1996/05/09 20:31:53 is Exp $ */ /* @@ -82,7 +82,7 @@ extern unsigned char ssir; #define setsoftcback() (ssir |= SIR_CBACK, setsoftint()) void softintr_schedule(void *); -void *softintr_establish __P((int, void (*)(void *), void *)); +void *softintr_establish(int, void (*)(void *), void *); #endif /* _KERNEL */ diff --git a/sys/arch/amiga/isa/cross.c b/sys/arch/amiga/isa/cross.c index b17fcde3d37..6e1bb20bac4 100644 --- a/sys/arch/amiga/isa/cross.c +++ b/sys/arch/amiga/isa/cross.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cross.c,v 1.21 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: cross.c,v 1.22 2002/03/14 03:15:52 millert Exp $ */ /* * Copyright (c) 1994, 1996 Niklas Hallqvist, Carsten Hammer @@ -108,8 +108,8 @@ int crossintr(void *); void cross_attach_hook(struct device *, struct device *, struct isabus_attach_args *); -void *cross_intr_establish __P((void *, int, int, int, int (*)(void *), - void *, char *)); +void *cross_intr_establish(void *, int, int, int, int (*)(void *), + void *, char *); void cross_intr_disestablish(void *, void *); int cross_intr_check(void *, int, int); diff --git a/sys/arch/amiga/isa/ggbus.c b/sys/arch/amiga/isa/ggbus.c index c30dd46d0f2..356b148314b 100644 --- a/sys/arch/amiga/isa/ggbus.c +++ b/sys/arch/amiga/isa/ggbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ggbus.c,v 1.15 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: ggbus.c,v 1.16 2002/03/14 03:15:52 millert Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Niklas Hallqvist @@ -70,8 +70,8 @@ int ggbusintr(void *); void ggbus_attach_hook(struct device *, struct device *, struct isabus_attach_args *); -void *ggbus_intr_establish __P((void *, int, int, int, int (*)(void *), - void *, char *)); +void *ggbus_intr_establish(void *, int, int, int, int (*)(void *), + void *, char *); void ggbus_intr_disestablish(void *, void *); int ggbus_intr_check(void *, int, int); diff --git a/sys/arch/amiga/isa/isa_machdep.h b/sys/arch/amiga/isa/isa_machdep.h index 6749560e84f..3b28d6a705d 100644 --- a/sys/arch/amiga/isa/isa_machdep.h +++ b/sys/arch/amiga/isa/isa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.h,v 1.5 2002/03/14 01:26:29 millert Exp $ */ +/* $OpenBSD: isa_machdep.h,v 1.6 2002/03/14 03:15:52 millert Exp $ */ /* * Copyright (c) 1995, 1996 Niklas Hallqvist @@ -44,8 +44,8 @@ struct amiga_isa_chipset { void (*ic_attach_hook)(struct device *, struct device *, struct isabus_attach_args *); - void *(*ic_intr_establish) __P((void *, int, int, int, - int (*)(void *), void *, char *)); + void *(*ic_intr_establish)(void *, int, int, int, + int (*)(void *), void *, char *); void (*ic_intr_disestablish)(void *, void *); int (*ic_intr_check)(void *, int, int); }; diff --git a/sys/arch/amiga/stand/boot/main.c b/sys/arch/amiga/stand/boot/main.c index bfaf4d86d9a..68d1a55bd4e 100644 --- a/sys/arch/amiga/stand/boot/main.c +++ b/sys/arch/amiga/stand/boot/main.c @@ -1,5 +1,5 @@ /* - * $OpenBSD: main.c,v 1.5 2002/03/14 01:26:29 millert Exp $ + * $OpenBSD: main.c,v 1.6 2002/03/14 03:15:52 millert Exp $ * $NetBSD: main.c,v 1.1.1.1 1996/11/29 23:36:29 is Exp $ * * @@ -382,7 +382,7 @@ pain() printf("+%lu]", (unsigned long)stringsz); if (read(io, (char *)nkcd, stringsz) != stringsz) goto err; - nkcd = (int*)((char *)nkcd + ((stringsz + 3) & ~3)); + nkcd = (int *)((char *)nkcd + ((stringsz + 3) & ~3)); esym = (char *)(textsz + eh->a_data + eh->a_bss + eh->a_syms + 4 + ((stringsz + 3) & ~3)); } diff --git a/sys/arch/amiga/stand/loadbsd/loadbsd.c b/sys/arch/amiga/stand/loadbsd/loadbsd.c index c6725aa7849..fb95e097f95 100644 --- a/sys/arch/amiga/stand/loadbsd/loadbsd.c +++ b/sys/arch/amiga/stand/loadbsd/loadbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loadbsd.c,v 1.15 2002/03/14 01:26:30 millert Exp $ */ +/* $OpenBSD: loadbsd.c,v 1.16 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: loadbsd.c,v 1.22 1996/10/13 13:39:52 is Exp $ */ /* @@ -66,13 +66,6 @@ #define __LDPGSZ 8192 #if !defined(__NetBSD__) && !defined(__OpenBSD__) -#ifndef __P -#ifdef __STDC__ -#define __P(x) x -#else -#define __P(x) -#endif -#endif void err(int, const char *, ...); void errx(int, const char *, ...); void warn(const char *, ...); @@ -387,7 +380,7 @@ main(argc, argv) read(fd, (char *)nkcd, e.a_syms); nkcd = (int *)((char *)nkcd + e.a_syms); read(fd, (char *)nkcd, stringsz); - nkcd = (int*)((char *)nkcd + ((stringsz + 3) & ~3)); + nkcd = (int *)((char *)nkcd + ((stringsz + 3) & ~3)); esym = (char *)(textsz + e.a_data + e.a_bss + e.a_syms + 4 + ((stringsz + 3) & ~3)); } diff --git a/sys/arch/hp300/dev/diovar.h b/sys/arch/hp300/dev/diovar.h index b211dc371a3..61c1f156170 100644 --- a/sys/arch/hp300/dev/diovar.h +++ b/sys/arch/hp300/dev/diovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: diovar.h,v 1.4 2002/03/14 01:26:30 millert Exp $ */ +/* $OpenBSD: diovar.h,v 1.5 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: diovar.h,v 1.3 1997/05/05 21:01:33 thorpej Exp $ */ /*- @@ -77,6 +77,6 @@ struct dio_devdesc { #ifdef _KERNEL void *dio_scodetopa(int); -void *dio_intr_establish __P((int (*)(void *), void *, int, int)); +void *dio_intr_establish(int (*)(void *), void *, int, int); void dio_intr_disestablish(void *); #endif /* _KERNEL */ diff --git a/sys/arch/hp300/dev/frodovar.h b/sys/arch/hp300/dev/frodovar.h index 6958d75eef9..1377ac8d10c 100644 --- a/sys/arch/hp300/dev/frodovar.h +++ b/sys/arch/hp300/dev/frodovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: frodovar.h,v 1.2 2002/03/14 01:26:30 millert Exp $ */ +/* $OpenBSD: frodovar.h,v 1.3 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: frodovar.h,v 1.1 1997/05/12 08:03:50 thorpej Exp $ */ /* @@ -44,6 +44,6 @@ struct frodo_attach_args { #define frodocf_offset cf_loc[0] #define FRODO_UNKNOWN_OFFSET -1 -void frodo_intr_establish __P((struct device *, int (*func)(void *), - void *, int, int)); +void frodo_intr_establish(struct device *, int (*func)(void *), + void *, int, int); void frodo_intr_disestablish(struct device *, int); diff --git a/sys/arch/hp300/dev/grfvar.h b/sys/arch/hp300/dev/grfvar.h index 1c6a8ea3f3b..59ebc83f359 100644 --- a/sys/arch/hp300/dev/grfvar.h +++ b/sys/arch/hp300/dev/grfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: grfvar.h,v 1.7 2002/03/14 01:26:30 millert Exp $ */ +/* $OpenBSD: grfvar.h,v 1.8 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: grfvar.h,v 1.10 1997/03/31 07:34:19 scottr Exp $ */ /* @@ -151,7 +151,7 @@ int grflckunmmap(dev_t, caddr_t); /* grf_subr.c prototypes */ struct itesw; -void grfdev_attach __P((struct grfdev_softc *, +void grfdev_attach(struct grfdev_softc *, int (*init)(struct grf_data *, int, caddr_t), - caddr_t, struct grfsw *, struct itesw *itesw)); + caddr_t, struct grfsw *, struct itesw *itesw); #endif /* _KERNEL */ diff --git a/sys/arch/hp300/hp300/db_memrw.c b/sys/arch/hp300/hp300/db_memrw.c index 67d075c5379..4a75e4f737e 100644 --- a/sys/arch/hp300/hp300/db_memrw.c +++ b/sys/arch/hp300/hp300/db_memrw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_memrw.c,v 1.8 2002/03/14 01:26:30 millert Exp $ */ +/* $OpenBSD: db_memrw.c,v 1.9 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: db_memrw.c,v 1.5 1997/06/10 18:48:47 veego Exp $ */ /*- @@ -81,15 +81,15 @@ db_read_bytes(addr, size, data) size_t size; char *data; { - char *src = (char*)addr; + char *src = (char *)addr; if (size == 4) { - *((int*)data) = *((int*)src); + *((int *)data) = *((int *)src); return; } if (size == 2) { - *((short*)data) = *((short*)src); + *((short *)data) = *((short *)src); return; } @@ -209,12 +209,12 @@ db_write_bytes(addr, size, data) } if (size == 4) { - *((int*)dst) = *((int*)data); + *((int *)dst) = *((int *)data); return; } if (size == 2) { - *((short*)dst) = *((short*)data); + *((short *)dst) = *((short *)data); return; } diff --git a/sys/arch/hp300/include/autoconf.h b/sys/arch/hp300/include/autoconf.h index b21ee54e212..4b1d224559f 100644 --- a/sys/arch/hp300/include/autoconf.h +++ b/sys/arch/hp300/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.7 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: autoconf.h,v 1.8 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: autoconf.h,v 1.4 1997/04/01 03:03:56 scottr Exp $ */ /*- @@ -45,7 +45,7 @@ extern int convasize; /* size of mapping at conaddr */ extern int conforced; /* console has been forced */ void hp300_cninit(void); -void console_scan __P((int (*)(int, caddr_t, void *), void *)); +void console_scan(int (*)(int, caddr_t, void *), void *); caddr_t iomap(caddr_t, int); void iounmap(caddr_t, int); #endif /* _KERNEL */ diff --git a/sys/arch/hp300/include/intr.h b/sys/arch/hp300/include/intr.h index 2ede3c194a8..9465fbacf27 100644 --- a/sys/arch/hp300/include/intr.h +++ b/sys/arch/hp300/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.7 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: intr.h,v 1.8 2002/03/14 03:15:52 millert Exp $ */ /* $NetBSD: intr.h,v 1.2 1997/07/24 05:43:08 scottr Exp $ */ /*- @@ -178,7 +178,7 @@ int spl0(void); /* intr.c */ void intr_init(void); -void *intr_establish __P((int (*)(void *), void *, int, int)); +void *intr_establish(int (*)(void *), void *, int, int); void intr_disestablish(void *); void intr_dispatch(int); void intr_printlevels(void); diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c index 1c10c234214..8c53679f72c 100644 --- a/sys/arch/hppa/dev/pdc.c +++ b/sys/arch/hppa/dev/pdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdc.c,v 1.23 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: pdc.c,v 1.24 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -59,7 +59,7 @@ pz_device_t *pz_kbd, *pz_cons; hppa_hpa_t conaddr; int conunit; -int pdcmatch(struct device *, void *, void*); +int pdcmatch(struct device *, void *, void *); void pdcattach(struct device *, struct device *, void *); struct cfattach pdc_ca = { diff --git a/sys/arch/hppa/eisa/eisa_machdep.h b/sys/arch/hppa/eisa/eisa_machdep.h index 69c8883675e..732812c416b 100644 --- a/sys/arch/hppa/eisa/eisa_machdep.h +++ b/sys/arch/hppa/eisa/eisa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: eisa_machdep.h,v 1.3 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: eisa_machdep.h,v 1.4 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -40,11 +40,11 @@ struct hppa_eisa_chipset { void *ec_v; void (*ec_attach_hook)(struct device *, struct device *, - struct eisabus_attach_args *); + struct eisabus_attach_args *); int (*ec_intr_map)(void *, u_int, int *); const char *(*ec_intr_string)(void *, int); - void *(*ec_intr_establish) __P((void *, int, int, int, - int (*)(void *), void *, char *)); + void *(*ec_intr_establish)(void *, int, int, int, + int (*)(void *), void *, char *); void (*ec_intr_disestablish)(void *, void *); }; diff --git a/sys/arch/hppa/gsc/gscbusvar.h b/sys/arch/hppa/gsc/gscbusvar.h index 1435f820729..b6721abe5b4 100644 --- a/sys/arch/hppa/gsc/gscbusvar.h +++ b/sys/arch/hppa/gsc/gscbusvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gscbusvar.h,v 1.6 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: gscbusvar.h,v 1.7 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -74,9 +74,9 @@ struct gsc_softc { u_int32_t sc_intrmask; }; -void *gsc_intr_establish __P((struct gsc_softc *sc, int pri, int irq, - int (*handler)(void *v), void *arg, - struct device *name)); +void *gsc_intr_establish(struct gsc_softc *sc, int pri, int irq, + int (*handler)(void *v), void *arg, + struct device *name); void gsc_intr_disestablish(struct gsc_softc *sc, void *v); int gsc_intr(void *); diff --git a/sys/arch/hppa/hppa/db_interface.c b/sys/arch/hppa/hppa/db_interface.c index 66e6a8b5072..0f8438c3d65 100644 --- a/sys/arch/hppa/hppa/db_interface.c +++ b/sys/arch/hppa/hppa/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.17 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: db_interface.c,v 1.18 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1999-2000 Michael Shalayeff @@ -142,7 +142,7 @@ db_read_bytes(addr, size, data) size_t size; char *data; { - register char *src = (char*)addr; + register char *src = (char *)addr; while (size--) *data++ = *src++; diff --git a/sys/arch/hppa/hppa/disksubr.c b/sys/arch/hppa/hppa/disksubr.c index adaefeb50d3..6d4845d0a44 100644 --- a/sys/arch/hppa/hppa/disksubr.c +++ b/sys/arch/hppa/hppa/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.8 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: disksubr.c,v 1.9 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1999 Michael Shalayeff @@ -74,20 +74,20 @@ #if defined(DISKLABEL_I386) || defined(DISKLABEL_ALPHA) || defined(DISKLABEL_AMIGA) || defined(DISKLABEL_HPPA) || defined(DISKLABEL_ALL) void swapdisklabel(struct disklabel *d); -char *readbsdlabel __P((struct buf *, void (*)(struct buf *), int, int, - int, int, struct disklabel *, int)); +char *readbsdlabel(struct buf *, void (*)(struct buf *), int, int, + int, int, struct disklabel *, int); #endif #if defined(DISKLABEL_I386) || defined(DISKLABEL_ALL) -char *readdoslabel __P((struct buf *, void (*)(struct buf *), - struct disklabel *, struct cpu_disklabel *, int *, int *, int)); +char *readdoslabel(struct buf *, void (*)(struct buf *), + struct disklabel *, struct cpu_disklabel *, int *, int *, int); #endif #if defined(DISKLABEL_AMIGA) || defined(DISKLABEL_ALL) -char *readamigalabel __P((struct buf *, void (*)(struct buf *), - struct disklabel *, struct cpu_disklabel *, int)); +char *readamigalabel(struct buf *, void (*)(struct buf *), + struct disklabel *, struct cpu_disklabel *, int); #endif #if defined(DISKLABEL_HPPA) || defined(DISKLABEL_ALL) -char *readliflabel __P((struct buf *, void (*)(struct buf *), - struct disklabel *, struct cpu_disklabel *, int *, int *, int)); +char *readliflabel(struct buf *, void (*)(struct buf *), + struct disklabel *, struct cpu_disklabel *, int *, int *, int); #endif static enum disklabel_tag probe_order[] = { LABELPROBES, -1 }; diff --git a/sys/arch/hppa/include/autoconf.h b/sys/arch/hppa/include/autoconf.h index f926ce872ba..17d4c304f02 100644 --- a/sys/arch/hppa/include/autoconf.h +++ b/sys/arch/hppa/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.13 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: autoconf.h,v 1.14 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -69,8 +69,8 @@ const char *hppa_mod_info(int, int); void pdc_scanbus(struct device *, struct confargs *, int bus, int); int mbprint(void *, const char *); int mbsubmatch(struct device *, void *, void *); -void *cpu_intr_establish __P((int pri, int, int (*handler)(void *), - void *arg, struct device *name)); +void *cpu_intr_establish(int pri, int, int (*handler)(void *), + void *arg, struct device *name); int clock_intr(void *); void dumpconf(void); diff --git a/sys/arch/hppa/isa/isa_machdep.h b/sys/arch/hppa/isa/isa_machdep.h index e87d4d776de..5be71734498 100644 --- a/sys/arch/hppa/isa/isa_machdep.h +++ b/sys/arch/hppa/isa/isa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.h,v 1.3 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: isa_machdep.h,v 1.4 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -42,8 +42,8 @@ struct hppa_isa_chipset { void (*ic_attach_hook)(struct device *, struct device *, struct isabus_attach_args *); - void *(*ic_intr_establish) __P((void *, int, int, int, - int (*)(void *), void *, char *)); + void *(*ic_intr_establish)(void *, int, int, int, + int (*)(void *), void *, char *); void (*ic_intr_disestablish)(void *, void *); int (*ic_intr_check)(void *, int, int); }; diff --git a/sys/arch/hppa/spmath/dbl_float.h b/sys/arch/hppa/spmath/dbl_float.h index ee30283eb53..293071d08fb 100644 --- a/sys/arch/hppa/spmath/dbl_float.h +++ b/sys/arch/hppa/spmath/dbl_float.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dbl_float.h,v 1.6 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: dbl_float.h,v 1.7 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright 1996 1995 by Open Software Foundation, Inc. @@ -552,13 +552,13 @@ } -int dbl_fadd(dbl_floating_point *, dbl_floating_point*, dbl_floating_point*, unsigned int *); -int dbl_fcmp(dbl_floating_point *, dbl_floating_point*, unsigned int, unsigned int *); +int dbl_fadd(dbl_floating_point *, dbl_floating_point *, dbl_floating_point *, unsigned int *); +int dbl_fcmp(dbl_floating_point *, dbl_floating_point *, unsigned int, unsigned int *); int dbl_fdiv(dbl_floating_point *, dbl_floating_point *, dbl_floating_point *, unsigned int *); -int dbl_fmpy(dbl_floating_point *, dbl_floating_point *, dbl_floating_point*, unsigned int *); -int dbl_frem(dbl_floating_point *, dbl_floating_point *, dbl_floating_point*, unsigned int *); +int dbl_fmpy(dbl_floating_point *, dbl_floating_point *, dbl_floating_point *, unsigned int *); +int dbl_frem(dbl_floating_point *, dbl_floating_point *, dbl_floating_point *, unsigned int *); int dbl_fsqrt(dbl_floating_point *, dbl_floating_point *, unsigned int *); -int dbl_fsub(dbl_floating_point *, dbl_floating_point *, dbl_floating_point*, unsigned int *); +int dbl_fsub(dbl_floating_point *, dbl_floating_point *, dbl_floating_point *, unsigned int *); dbl_floating_point dbl_setoverflow(unsigned int); diff --git a/sys/arch/hppa/stand/libsa/cmd_hppa.c b/sys/arch/hppa/stand/libsa/cmd_hppa.c index 6ddee6e3f1f..24ad3783dcb 100644 --- a/sys/arch/hppa/stand/libsa/cmd_hppa.c +++ b/sys/arch/hppa/stand/libsa/cmd_hppa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd_hppa.c,v 1.3 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: cmd_hppa.c,v 1.4 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 2002 Miodrag Vallat @@ -130,7 +130,7 @@ int i_speeds[] = { 230400, }; -char* c_speeds[] = { +char *c_speeds[] = { "50", "75", "110", diff --git a/sys/arch/hppa/stand/libsa/pdc.c b/sys/arch/hppa/stand/libsa/pdc.c index 20119f8b580..f00a1e91f3b 100644 --- a/sys/arch/hppa/stand/libsa/pdc.c +++ b/sys/arch/hppa/stand/libsa/pdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdc.c,v 1.10 1999/05/06 02:27:44 mickey Exp $ */ +/* $OpenBSD: pdc.c,v 1.11 2002/03/14 03:15:53 millert Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -444,10 +444,10 @@ fcacheall() if (debug) printf("pdc_cache:\nic={%u,%x,%x,%u,%u,%u}\n" "dc={%u,%x,%x,%u,%u,%u}\n", - pdc_cacheinfo.ic_size, *(u_int*)&pdc_cacheinfo.ic_conf, + pdc_cacheinfo.ic_size, *(u_int *)&pdc_cacheinfo.ic_conf, pdc_cacheinfo.ic_base, pdc_cacheinfo.ic_stride, pdc_cacheinfo.ic_count, pdc_cacheinfo.ic_loop, - pdc_cacheinfo.dc_size, *(u_int*)&pdc_cacheinfo.ic_conf, + pdc_cacheinfo.dc_size, *(u_int *)&pdc_cacheinfo.ic_conf, pdc_cacheinfo.dc_base, pdc_cacheinfo.dc_stride, pdc_cacheinfo.dc_count, pdc_cacheinfo.dc_loop); #endif diff --git a/sys/arch/i386/eisa/eisa_machdep.h b/sys/arch/i386/eisa/eisa_machdep.h index b1746e33ed8..a313d805fae 100644 --- a/sys/arch/i386/eisa/eisa_machdep.h +++ b/sys/arch/i386/eisa/eisa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: eisa_machdep.h,v 1.4 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: eisa_machdep.h,v 1.5 2002/03/14 03:15:53 millert Exp $ */ /* $NetBSD: eisa_machdep.h,v 1.4 1997/06/06 23:12:52 thorpej Exp $ */ /* @@ -60,7 +60,6 @@ int eisa_maxslots(eisa_chipset_tag_t); int eisa_intr_map(eisa_chipset_tag_t, u_int, eisa_intr_handle_t *); const char *eisa_intr_string(eisa_chipset_tag_t, eisa_intr_handle_t); -void *eisa_intr_establish __P((eisa_chipset_tag_t, - eisa_intr_handle_t, int, int, int (*)(void *), void *, - char *)); +void *eisa_intr_establish(eisa_chipset_tag_t, eisa_intr_handle_t, + int, int, int (*)(void *), void *, char *); void eisa_intr_disestablish(eisa_chipset_tag_t, void *); diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index 236b226745e..b83b1a52369 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.52 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: apm.c,v 1.53 2002/03/14 03:15:53 millert Exp $ */ /*- * Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved. @@ -1022,7 +1022,7 @@ apmioctl(dev, cmd, data, flag, p) if ((flag & FWRITE) == 0) error = EBADF; else { - int flag = *(int*)data; + int flag = *(int *)data; DPRINTF(( "APM_IOC_PRN_CTL: %d\n", flag )); switch (flag) { case APM_PRINT_ON: /* enable printing */ diff --git a/sys/arch/i386/i386/math_emulate.c b/sys/arch/i386/i386/math_emulate.c index b8df8fef771..d51efca8c81 100644 --- a/sys/arch/i386/i386/math_emulate.c +++ b/sys/arch/i386/i386/math_emulate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: math_emulate.c,v 1.4 1996/05/07 07:21:48 deraadt Exp $ */ +/* $OpenBSD: math_emulate.c,v 1.5 2002/03/14 03:15:53 millert Exp $ */ /* $NetBSD: math_emulate.c,v 1.17 1996/05/03 19:42:17 christos Exp $ */ /* @@ -580,7 +580,7 @@ char * ea(struct trapframe * info, u_short code) I387.fos = 0x17; return (char *) offset; } - tmp = (long*)®(rm); + tmp = (long *)®(rm); switch (mod) { case 0: offset = 0; break; case 1: diff --git a/sys/arch/i386/isa/isa_machdep.h b/sys/arch/i386/isa/isa_machdep.h index 4886c9e21fb..b83df1b7976 100644 --- a/sys/arch/i386/isa/isa_machdep.h +++ b/sys/arch/i386/isa/isa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.h,v 1.16 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: isa_machdep.h,v 1.17 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: isa_machdep.h,v 1.7 1997/06/06 23:28:42 thorpej Exp $ */ /*- @@ -109,8 +109,8 @@ void isa_attach_hook(struct device *, struct device *, struct isabus_attach_args *); int isa_intr_alloc(isa_chipset_tag_t, int, int, int *); int isa_intr_check(isa_chipset_tag_t, int, int); -void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type, - int level, int (*ih_fun)(void *), void *ih_arg, char *ih_what)); +void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type, + int level, int (*ih_fun)(void *), void *ih_arg, char *ih_what); void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler); /* diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c index 6f3e017d978..873dec344eb 100644 --- a/sys/arch/i386/isa/pccons.c +++ b/sys/arch/i386/isa/pccons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccons.c,v 1.49 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: pccons.c,v 1.50 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */ /*- @@ -691,8 +691,8 @@ pcioctl(dev, cmd, data, flag, p) * is the duration in msec. */ if (data) - sysbeep(((int*)data)[0], - (((int*)data)[1] * hz) / 1000); + sysbeep(((int *)data)[0], + (((int *)data)[1] * hz) / 1000); else sysbeep(BEEP_FREQ, BEEP_TIME); return 0; diff --git a/sys/arch/i386/pci/pci_machdep.h b/sys/arch/i386/pci/pci_machdep.h index 553136a4529..ffdd5d9d864 100644 --- a/sys/arch/i386/pci/pci_machdep.h +++ b/sys/arch/i386/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.10 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.11 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: pci_machdep.h,v 1.7 1997/06/06 23:29:18 thorpej Exp $ */ /* @@ -92,8 +92,8 @@ int pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *); #define pci_intr_line(ih) ((ih).line) const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t); -void *pci_intr_establish __P((pci_chipset_tag_t, pci_intr_handle_t, - int, int (*)(void *), void *, char *)); +void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t, + int, int (*)(void *), void *, char *); void pci_intr_disestablish(pci_chipset_tag_t, void *); void pci_decompose_tag(pci_chipset_tag_t, pcitag_t, int *, int *, int *); diff --git a/sys/arch/i386/pci/pcibiosvar.h b/sys/arch/i386/pci/pcibiosvar.h index 86d377f13c1..7934f4a761e 100644 --- a/sys/arch/i386/pci/pcibiosvar.h +++ b/sys/arch/i386/pci/pcibiosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcibiosvar.h,v 1.9 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: pcibiosvar.h,v 1.10 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: pcibios.h,v 1.2 2000/04/28 17:15:16 uch Exp $ */ /* @@ -148,8 +148,8 @@ struct extent *pciaddr_search(int, bus_addr_t *, bus_size_t); int pci_intr_fixup(struct pcibios_softc *, pci_chipset_tag_t, bus_space_tag_t); int pci_bus_fixup(pci_chipset_tag_t, int); void pci_addr_fixup(struct pcibios_softc *, pci_chipset_tag_t, int); -void pci_device_foreach __P((struct pcibios_softc *, pci_chipset_tag_t, int, - void (*)(struct pcibios_softc *, pci_chipset_tag_t, pcitag_t))); +void pci_device_foreach(struct pcibios_softc *, pci_chipset_tag_t, int, + void (*)(struct pcibios_softc *, pci_chipset_tag_t, pcitag_t)); int pci_intr_header_fixup(pci_chipset_tag_t, pcitag_t, pci_intr_handle_t *); int pci_intr_route_link(pci_chipset_tag_t, pci_intr_handle_t *); int pci_intr_post_fixup(void); diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index db3090fb752..46f7faa2ccb 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.53 2002/03/14 01:26:34 millert Exp $ */ +/* $OpenBSD: biosdev.c,v 1.54 2002/03/14 03:15:54 millert Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -178,7 +178,7 @@ static __inline int biosd_rw(rw, dev, cyl, head, sect, nsect, buf) int rw, dev, cyl, head; int sect, nsect; - void* buf; + void * buf; { int rv; BIOS_regs.biosr_es = (u_int32_t)buf >> 4; @@ -229,7 +229,7 @@ int biosd_io(rw, dev, cyl, head, sect, nsect, buf) int rw, dev, cyl, head; int sect, nsect; - void* buf; + void * buf; { int j, error; void *bb; @@ -454,7 +454,7 @@ biosopen(struct open_file *f, ...) /* Try for disklabel again (might be removable media) */ if(dip->bios_info.flags & BDI_BADLABEL){ - const char *st = bios_getdisklabel((void*)biosdev, &dip->disklabel); + const char *st = bios_getdisklabel((void *)biosdev, &dip->disklabel); if (debug && st) printf("%s\n", st); diff --git a/sys/arch/i386/stand/libsa/biosdev.h b/sys/arch/i386/stand/libsa/biosdev.h index 675d17c11cc..156519f2bb7 100644 --- a/sys/arch/i386/stand/libsa/biosdev.h +++ b/sys/arch/i386/stand/libsa/biosdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.h,v 1.26 2002/03/14 01:26:34 millert Exp $ */ +/* $OpenBSD: biosdev.h,v 1.27 2002/03/14 03:15:54 millert Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -42,7 +42,7 @@ int biosopen(struct open_file *, ...); int biosclose(struct open_file *); int biosioctl(struct open_file *, u_long, void *); int bios_getdiskinfo(int, bios_diskinfo_t *); -int biosd_io(int, int, int, int, int, int, void*); +int biosd_io(int, int, int, int, int, int, void *); const char * bios_getdisklabel(bios_diskinfo_t *, struct disklabel *); /* diskprobe.c */ diff --git a/sys/arch/i386/stand/libsa/cmd_i386.c b/sys/arch/i386/stand/libsa/cmd_i386.c index 70c7bb1774e..f0de0e8c9ce 100644 --- a/sys/arch/i386/stand/libsa/cmd_i386.c +++ b/sys/arch/i386/stand/libsa/cmd_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd_i386.c,v 1.23 2002/03/14 01:26:34 millert Exp $ */ +/* $OpenBSD: cmd_i386.c,v 1.24 2002/03/14 03:15:54 millert Exp $ */ /* * Copyright (c) 1997-1999 Michael Shalayeff @@ -52,7 +52,7 @@ int Xmemory(void); int Xregs(void); /* From gidt.S */ -int bootbuf(void*, int); +int bootbuf(void *, int); const struct cmd_table cmd_machine[] = { { "boot", CMDT_CMD, Xboot }, @@ -87,7 +87,7 @@ Xboot() { #ifndef _TEST int dev, part, st; - char buf[DEV_BSIZE], *dest = (void*)BOOTBIOS_ADDR; + char buf[DEV_BSIZE], *dest = (void *)BOOTBIOS_ADDR; if(cmd.argc != 2) { printf("machine boot {fd,hd}<0123>[abcd]\n"); diff --git a/sys/arch/i386/stand/libsa/debug.c b/sys/arch/i386/stand/libsa/debug.c index d2374fea76a..5e06dd86bfb 100644 --- a/sys/arch/i386/stand/libsa/debug.c +++ b/sys/arch/i386/stand/libsa/debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: debug.c,v 1.8 2002/03/14 01:26:34 millert Exp $ */ +/* $OpenBSD: debug.c,v 1.9 2002/03/14 03:15:54 millert Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -83,7 +83,7 @@ dump_regs(trapno, arg) ((i%4)? ' ': '\n')); dump_mem("Code dump", (void *)*reg_values[8], 8); - /* %ebx (void*)((*reg_values[3] + 15) & ~0x0F) */ + /* %ebx (void *)((*reg_values[3] + 15) & ~0x0F) */ dump_mem("Memory dump", (void *)0x1a000, 48); dump_mem("Stack trace", (void *)(*reg_values[4]), 48); diff --git a/sys/arch/m68k/fpe/fpu_calcea.c b/sys/arch/m68k/fpe/fpu_calcea.c index 25338b03856..c3b2044e779 100644 --- a/sys/arch/m68k/fpe/fpu_calcea.c +++ b/sys/arch/m68k/fpe/fpu_calcea.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_calcea.c,v 1.7 2002/03/14 01:26:34 millert Exp $ */ +/* $OpenBSD: fpu_calcea.c,v 1.8 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: fpu_calcea.c,v 1.7 1996/10/16 06:27:05 scottr Exp $ */ /* @@ -478,7 +478,7 @@ fpu_store_ea(frame, insn, ea, src) #endif return SIGILL; } - dst = (char*)&frame->f_regs[ea->ea_regnum]; + dst = (char *)&frame->f_regs[ea->ea_regnum]; /* The destination is an int. */ if (len < 4) { dst += (4 - len); diff --git a/sys/arch/m68k/fpe/fpu_emulate.c b/sys/arch/m68k/fpe/fpu_emulate.c index 6f3502575fb..d17adad52d9 100644 --- a/sys/arch/m68k/fpe/fpu_emulate.c +++ b/sys/arch/m68k/fpe/fpu_emulate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_emulate.c,v 1.9 2002/03/14 01:26:34 millert Exp $ */ +/* $OpenBSD: fpu_emulate.c,v 1.10 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: fpu_emulate.c,v 1.14 1996/12/18 05:44:31 scottr Exp $ */ /* @@ -512,14 +512,14 @@ fpu_emul_fmovm(fe, insn) if (regmask & reglist) { if (fpu_to_mem) { sig = fpu_store_ea(frame, insn, &insn->is_ea0, - (char*)&fpregs[regnum * 3]); + (char *)&fpregs[regnum * 3]); if (fpu_debug_level & DL_RESULT) printf(" fpu_emul_fmovm: FP%d (%08x,%08x,%08x) saved\n", regnum, fpregs[regnum * 3], fpregs[regnum * 3 + 1], fpregs[regnum * 3 + 2]); } else { /* mem to fpu */ sig = fpu_load_ea(frame, insn, &insn->is_ea0, - (char*)&fpregs[regnum * 3]); + (char *)&fpregs[regnum * 3]); if (fpu_debug_level & DL_RESULT) printf(" fpu_emul_fmovm: FP%d (%08x,%08x,%08x) loaded\n", regnum, fpregs[regnum * 3], fpregs[regnum * 3 + 1], @@ -696,7 +696,7 @@ fpu_emul_arith(fe, insn) } } /* if (fpu_debug_level & DL_ARITH) */ - fpu_load_ea(frame, insn, &insn->is_ea0, (char*)buf); + fpu_load_ea(frame, insn, &insn->is_ea0, (char *)buf); if (format == FTYPE_WRD) { /* sign-extend */ buf[0] &= 0xffff; diff --git a/sys/arch/m68k/fpe/fpu_fscale.c b/sys/arch/m68k/fpe/fpu_fscale.c index 8a87f181061..0e936ade6b8 100644 --- a/sys/arch/m68k/fpe/fpu_fscale.c +++ b/sys/arch/m68k/fpe/fpu_fscale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_fscale.c,v 1.4 1997/01/13 11:51:05 niklas Exp $ */ +/* $OpenBSD: fpu_fscale.c,v 1.5 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: fpu_fscale.c,v 1.6 1996/10/13 03:19:14 christos Exp $ */ /* @@ -145,7 +145,7 @@ fpu_emul_fscale(fe, insn) printf("%c%d@\n", regname, insn->is_ea0.ea_regnum & 7); } } - fpu_load_ea(frame, insn, &insn->is_ea0, (char*)buf); + fpu_load_ea(frame, insn, &insn->is_ea0, (char *)buf); if (fpu_debug_level & DL_FSCALE) { printf(" fpu_emul_fscale: src = %08x%08x%08x, siz = %d\n", diff --git a/sys/arch/m68k/m68k/db_memrw.c b/sys/arch/m68k/m68k/db_memrw.c index 2acefaf108d..95077c35f1b 100644 --- a/sys/arch/m68k/m68k/db_memrw.c +++ b/sys/arch/m68k/m68k/db_memrw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_memrw.c,v 1.3 2001/11/06 19:53:14 miod Exp $ */ +/* $OpenBSD: db_memrw.c,v 1.4 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: db_memrw.c,v 1.1 1996/02/22 23:23:35 gwr Exp $ */ /* @@ -56,15 +56,15 @@ db_read_bytes(addr, size, data) register size_t size; register char *data; { - register char *src = (char*)addr; + register char *src = (char *)addr; if (size == 4) { - *((int*)data) = *((int*)src); + *((int *)data) = *((int *)src); return; } if (size == 2) { - *((short*)data) = *((short*)src); + *((short *)data) = *((short *)src); return; } @@ -86,12 +86,12 @@ db_write_bytes(addr, size, data) register char *dst = (char *)addr; if (size == 4) { - *((int*)dst) = *((int*)data); + *((int *)dst) = *((int *)data); return; } if (size == 2) { - *((short*)dst) = *((short*)data); + *((short *)dst) = *((short *)data); return; } diff --git a/sys/arch/m68k/m68k/db_trace.c b/sys/arch/m68k/m68k/db_trace.c index 288130d56d9..ef32a9471b3 100644 --- a/sys/arch/m68k/m68k/db_trace.c +++ b/sys/arch/m68k/m68k/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.15 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.16 2002/03/14 03:15:54 millert Exp $ */ /* $NetBSD: db_trace.c,v 1.20 1997/02/05 05:10:25 scottr Exp $ */ /* @@ -78,9 +78,9 @@ db_var_short(varp, valp, op) int op; { if (op == DB_VAR_GET) - *valp = (db_expr_t) *((short*)varp->valuep); + *valp = (db_expr_t) *((short *)varp->valuep); else - *((short*)varp->valuep) = (short) *valp; + *((short *)varp->valuep) = (short) *valp; return(0); } diff --git a/sys/arch/mac68k/dev/grfvar.h b/sys/arch/mac68k/dev/grfvar.h index 19d3396ae49..f959b5698e7 100644 --- a/sys/arch/mac68k/dev/grfvar.h +++ b/sys/arch/mac68k/dev/grfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: grfvar.h,v 1.10 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: grfvar.h,v 1.11 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: grfvar.h,v 1.11 1996/08/04 06:03:58 scottr Exp $ */ /* @@ -151,7 +151,7 @@ int grfaddr(struct grf_softc *gp, register int off); int grfmap(dev_t dev, caddr_t *addrp, struct proc *p); int grfunmap(dev_t dev, caddr_t addr, struct proc *p); -void grf_establish __P((struct grfbus_softc *, nubus_slot *, +void grf_establish(struct grfbus_softc *, nubus_slot *, int (*)(struct grf_softc *, int, void *), - caddr_t (*)(struct grf_softc *, vm_offset_t))); + caddr_t (*)(struct grf_softc *, vm_offset_t)); int grfbusprint(void *, const char *); diff --git a/sys/arch/mac68k/dev/ncr5380.c b/sys/arch/mac68k/dev/ncr5380.c index a9ed67308eb..9a82fd74ca2 100644 --- a/sys/arch/mac68k/dev/ncr5380.c +++ b/sys/arch/mac68k/dev/ncr5380.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr5380.c,v 1.17 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: ncr5380.c,v 1.18 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: ncr5380.c,v 1.38 1996/12/19 21:48:18 scottr Exp $ */ /* @@ -325,7 +325,7 @@ ncr5380_scsi_cmd(struct scsi_xfer *xs) reqp->xs = xs; reqp->targ_id = xs->sc_link->target; reqp->targ_lun = xs->sc_link->lun; - reqp->xdata_ptr = (u_char*)xs->data; + reqp->xdata_ptr = (u_char *)xs->data; reqp->xdata_len = xs->datalen; memcpy(&reqp->xcmd, xs->cmd, sizeof(struct scsi_generic)); reqp->xcmd.bytes[0] |= reqp->targ_lun << 5; @@ -1768,7 +1768,7 @@ SC_REQ *reqp; * Initialize locals and requests' DMA-chain. */ req_len = reqp->xdata_len; - req_addr = (void*)reqp->xdata_ptr; + req_addr = (void *)reqp->xdata_ptr; dm = reqp->dm_cur = reqp->dm_last = reqp->dm_chain; dm->dm_count = dm->dm_addr = 0; reqp->dr_flag &= ~DRIVER_BOUNCING; diff --git a/sys/arch/mac68k/dev/nubus.c b/sys/arch/mac68k/dev/nubus.c index 631d6db420f..0b05e64abfa 100644 --- a/sys/arch/mac68k/dev/nubus.c +++ b/sys/arch/mac68k/dev/nubus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nubus.c,v 1.25 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: nubus.c,v 1.26 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: nubus.c,v 1.35 1997/04/22 20:20:32 scottr Exp $ */ /* @@ -833,5 +833,5 @@ nubus_mapin(paddr, sz) #endif pmap_update(pmap_kernel()); - return ((char*)retval); + return ((char *)retval); } diff --git a/sys/arch/mac68k/include/cpu.h b/sys/arch/mac68k/include/cpu.h index bee0b440bf6..9d72d9062a9 100644 --- a/sys/arch/mac68k/include/cpu.h +++ b/sys/arch/mac68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.23 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: cpu.h,v 1.24 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: cpu.h,v 1.45 1997/02/10 22:13:40 scottr Exp $ */ /* @@ -297,7 +297,7 @@ struct fpframe; struct pcb; /* machdep.c */ -void mac68k_set_bell_callback __P((int (*)(void *, int, int, int), void *)); +void mac68k_set_bell_callback(int (*)(void *, int, int, int), void *); int mac68k_ring_bell(int, int, int); u_int get_mapping(void); diff --git a/sys/arch/mac68k/include/psc.h b/sys/arch/mac68k/include/psc.h index 4e2a4436a49..59f28b5f51b 100644 --- a/sys/arch/mac68k/include/psc.h +++ b/sys/arch/mac68k/include/psc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: psc.h,v 1.3 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: psc.h,v 1.4 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: psc.h,v 1.3 1998/04/24 05:27:24 scottr Exp $ */ /*- @@ -39,10 +39,10 @@ extern volatile u_int8_t *PSCBase; void psc_init(void); -int add_psc_lev3_intr __P((void (*)(void *), void *)); -int add_psc_lev4_intr __P((int, int (*)(void *), void *)); -int add_psc_lev5_intr __P((int, void (*)(void *), void *)); -int add_psc_lev6_intr __P((int, void (*)(void *), void *)); +int add_psc_lev3_intr(void (*)(void *), void *); +int add_psc_lev4_intr(int, int (*)(void *), void *); +int add_psc_lev5_intr(int, void (*)(void *), void *); +int add_psc_lev6_intr(int, void (*)(void *), void *); int remove_psc_lev3_intr(void); int remove_psc_lev4_intr(int); diff --git a/sys/arch/mac68k/include/viareg.h b/sys/arch/mac68k/include/viareg.h index c864493457a..4dfd890c8d4 100644 --- a/sys/arch/mac68k/include/viareg.h +++ b/sys/arch/mac68k/include/viareg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: viareg.h,v 1.9 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: viareg.h,v 1.10 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: viareg.h,v 1.6 1997/02/28 07:41:41 scottr Exp $ */ /*- @@ -194,10 +194,10 @@ void via_init(void); int rbv_vidstatus(void); void via_shutdown(void); void via_set_modem(int); -int add_nubus_intr __P((int, void (*)(void *, int), void *)); +int add_nubus_intr(int, void (*)(void *, int), void *); void enable_nubus_intr(void); -void via1_register_irq __P((int, void (*)(void *), void *)); -void via2_register_irq __P((int, void (*)(void *), void *)); +void via1_register_irq(int, void (*)(void *), void *); +void via2_register_irq(int, void (*)(void *), void *); extern void (*via1itab[7])(void *); extern void (*via2itab[7])(void *); diff --git a/sys/arch/mac68k/mac68k/disksubr.c b/sys/arch/mac68k/mac68k/disksubr.c index 11265408e29..e6c08d951f6 100644 --- a/sys/arch/mac68k/mac68k/disksubr.c +++ b/sys/arch/mac68k/mac68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.16 2002/03/14 01:26:35 millert Exp $ */ +/* $OpenBSD: disksubr.c,v 1.17 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: disksubr.c,v 1.22 1997/11/26 04:18:20 briggs Exp $ */ /* @@ -107,8 +107,8 @@ static void setUfs(struct partmapentry *, struct disklabel *, int); static void setHfs(struct partmapentry *, struct disklabel *, int); static void setScratch(struct partmapentry *, struct disklabel *, int); static int getNamedType(struct partmapentry *, int, struct disklabel *, int, int, int *); -static char *read_mac_label __P((dev_t, void (*)(struct buf *), - register struct disklabel *, struct cpu_disklabel *)); +static char *read_mac_label(dev_t, void (*)(struct buf *), + register struct disklabel *, struct cpu_disklabel *); /* * Find an entry in the disk label that is unused and return it diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index ceb1ca25508..846d76a09f7 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.95 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.96 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */ /* @@ -239,7 +239,7 @@ static u_long get_physical(u_int, u_long *); void initcpu(void); int cpu_dumpsize(void); -int cpu_dump __P((int (*)(dev_t, daddr_t, caddr_t, size_t), daddr_t *)); +int cpu_dump(int (*)(dev_t, daddr_t, caddr_t, size_t), daddr_t *); void cpu_init_kcore_hdr(void); /* functions called from locore.s */ diff --git a/sys/arch/mac68k/mac68k/pmap_bootstrap.c b/sys/arch/mac68k/mac68k/pmap_bootstrap.c index 6503f559a87..4cc8c4231d5 100644 --- a/sys/arch/mac68k/mac68k/pmap_bootstrap.c +++ b/sys/arch/mac68k/mac68k/pmap_bootstrap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap_bootstrap.c,v 1.20 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: pmap_bootstrap.c,v 1.21 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: pmap_bootstrap.c,v 1.50 1999/04/07 06:14:33 scottr Exp $ */ /* @@ -252,14 +252,14 @@ pmap_bootstrap(nextpa, firstpa) * Initialize the final level 1 descriptor to map the last * block of level 2 descriptors. */ - ste = &(PA2VA(kstpa, u_int*))[SG4_LEV1SIZE-1]; - pte = &(PA2VA(kstpa, u_int*))[kstsize*NPTEPG - SG4_LEV2SIZE]; + ste = &(PA2VA(kstpa, u_int *))[SG4_LEV1SIZE-1]; + pte = &(PA2VA(kstpa, u_int *))[kstsize*NPTEPG - SG4_LEV2SIZE]; *ste = (u_int)pte | SG_U | SG_RW | SG_V; /* * Now initialize the final portion of that block of * descriptors to map the "last PT page". */ - pte = &(PA2VA(kstpa, u_int*)) + pte = &(PA2VA(kstpa, u_int *)) [kstsize*NPTEPG - NPTEPG/SG4_LEV3SIZE]; epte = &pte[NPTEPG/SG4_LEV3SIZE]; protoste = lkptpa | SG_U | SG_RW | SG_V; @@ -295,8 +295,8 @@ pmap_bootstrap(nextpa, firstpa) * and the software Sysptmap. Note that Sysptmap is also * considered a PT page hence the +1. */ - ste = PA2VA(kstpa, u_int*); - pte = PA2VA(kptmpa, u_int*); + ste = PA2VA(kstpa, u_int *); + pte = PA2VA(kptmpa, u_int *); epte = &pte[nptpages+1]; protoste = kptpa | SG_RW | SG_V; protopte = kptpa | PG_RW | PG_CI | PG_V; diff --git a/sys/arch/macppc/dev/adb_direct.c b/sys/arch/macppc/dev/adb_direct.c index eb25d2c239a..e045523b73a 100644 --- a/sys/arch/macppc/dev/adb_direct.c +++ b/sys/arch/macppc/dev/adb_direct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adb_direct.c,v 1.3 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: adb_direct.c,v 1.4 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: adb_direct.c,v 1.14 2000/06/08 22:10:45 tsubai Exp $ */ /* From: adb_direct.c 2.02 4/18/97 jpw */ @@ -1007,7 +1007,7 @@ adb_soft_intr(void) /* call default completion routine if it's valid */ if (comprout) { - ((int (*)(u_char *, u_char*, int)) comprout) + ((int (*)(u_char *, u_char *, int)) comprout) (buffer, compdata, cmd); #if 0 #ifdef __NetBSD__ diff --git a/sys/arch/macppc/dev/apm.c b/sys/arch/macppc/dev/apm.c index 49952497b99..c88d0a518f7 100644 --- a/sys/arch/macppc/dev/apm.c +++ b/sys/arch/macppc/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.3 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: apm.c,v 1.4 2002/03/14 03:15:55 millert Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -245,7 +245,7 @@ apmioctl(dev, cmd, data, flag, p) if ((flag & FWRITE) == 0) error = EBADF; else { - int flag = *(int*)data; + int flag = *(int *)data; DPRINTF(( "APM_IOC_PRN_CTL: %d\n", flag )); switch (flag) { case APM_PRINT_ON: /* enable printing */ diff --git a/sys/arch/macppc/dev/openpic.c b/sys/arch/macppc/dev/openpic.c index fff9bda75c1..7acbf97a4a6 100644 --- a/sys/arch/macppc/dev/openpic.c +++ b/sys/arch/macppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.15 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: openpic.c,v 1.16 2002/03/14 03:15:55 millert Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -169,7 +169,7 @@ openpic_attach(parent, self, aux) #if 1 mac_intr_establish(parent, 0x37, IST_LEVEL, - IPL_HIGH, openpic_prog_button, (void*)0x37, "prog button"); + IPL_HIGH, openpic_prog_button, (void *)0x37, "prog button"); #endif ppc_intr_enable(1); diff --git a/sys/arch/macppc/dev/uni_n.c b/sys/arch/macppc/dev/uni_n.c index 8c8d8fd6022..759bf2fe3f1 100644 --- a/sys/arch/macppc/dev/uni_n.c +++ b/sys/arch/macppc/dev/uni_n.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uni_n.c,v 1.3 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: uni_n.c,v 1.4 2002/03/14 03:15:55 millert Exp $ */ /* * Copyright (c) 1998-2001 Dale Rahn. All rights reserved. @@ -108,7 +108,7 @@ uni_n_config(int handle) if (OF_getprop(handle, "reg", &address, sizeof address) > 0) { baseaddr = mapiodev(address, NBPG); - ctladdr = (void*)(baseaddr + 0x20); + ctladdr = (void *)(baseaddr + 0x20); *ctladdr |= 0x02; return baseaddr; } diff --git a/sys/arch/macppc/dev/viareg.h b/sys/arch/macppc/dev/viareg.h index 43bd20ccbac..7d22035bf07 100644 --- a/sys/arch/macppc/dev/viareg.h +++ b/sys/arch/macppc/dev/viareg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: viareg.h,v 1.2 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: viareg.h,v 1.3 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: viareg.h,v 1.2 1998/10/20 14:56:30 tsubai Exp $ */ /*- @@ -235,10 +235,10 @@ void via_init(void); int rbv_vidstatus(void); void via_shutdown(void); void via_set_modem(int); -int add_nubus_intr __P((int, void (*)(void *, int), void *)); +int add_nubus_intr(int, void (*)(void *, int), void *); void enable_nubus_intr(void); -void via1_register_irq __P((int, void (*)(void *), void *)); -void via2_register_irq __P((int, void (*)(void *), void *)); +void via1_register_irq(int, void (*)(void *), void *); +void via2_register_irq(int, void (*)(void *), void *); extern void (*via1itab[7])(void *); extern void (*via2itab[7])(void *); diff --git a/sys/arch/macppc/include/autoconf.h b/sys/arch/macppc/include/autoconf.h index 137191816bb..643537699f9 100644 --- a/sys/arch/macppc/include/autoconf.h +++ b/sys/arch/macppc/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.3 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: autoconf.h,v 1.4 2002/03/14 03:15:55 millert Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -93,15 +93,15 @@ struct confargs { }; -void set_clockintr __P((void (*)(struct clockframe *))); -void set_iointr __P((void (*)(void *, int))); +void set_clockintr(void (*)(struct clockframe *)); +void set_iointr(void (*)(void *, int)); int badaddr(void *, u_int32_t); void calc_delayconst(void); void ofrootfound(void); typedef int mac_intr_handle_t; -typedef void *(intr_establish_t) __P((void *, mac_intr_handle_t, - int, int, int (*func)(void *), void *, char *)); +typedef void *(intr_establish_t)(void *, mac_intr_handle_t, + int, int, int (*func)(void *), void *, char *); typedef void (intr_disestablish_t)(void *, void *); intr_establish_t mac_intr_establish; diff --git a/sys/arch/macppc/include/powerpc.h b/sys/arch/macppc/include/powerpc.h index e5cb3674d17..12deaff95c6 100644 --- a/sys/arch/macppc/include/powerpc.h +++ b/sys/arch/macppc/include/powerpc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: powerpc.h,v 1.2 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: powerpc.h,v 1.3 2002/03/14 03:15:55 millert Exp $ */ /* $NetBSD: powerpc.h,v 1.1 1996/09/30 16:34:30 ws Exp $ */ /* @@ -79,7 +79,7 @@ extern struct firmware *fw; void ofwconprobe(void); int ppc_open_pci_bridge(void); void ppc_close_pci_bridge(int); -void install_extint __P((void (*handler) (void))); +void install_extint(void (*handler) (void)); void ppc_intr_enable(int enable); int ppc_intr_disable(void); diff --git a/sys/arch/macppc/macppc/db_memrw.c b/sys/arch/macppc/macppc/db_memrw.c index d8dc2405755..df6a8507e48 100644 --- a/sys/arch/macppc/macppc/db_memrw.c +++ b/sys/arch/macppc/macppc/db_memrw.c @@ -1,5 +1,5 @@ /* $NetBSD: db_memrw.c,v 1.4 2001/05/18 20:38:27 matt Exp $ */ -/* $OpenBSD: db_memrw.c,v 1.3 2001/11/06 19:53:15 miod Exp $ */ +/* $OpenBSD: db_memrw.c,v 1.4 2002/03/14 03:15:56 millert Exp $ */ /* * Mach Operating System @@ -58,7 +58,7 @@ db_read_bytes(addr, size, data) register size_t size; register char *data; { - register char *src = (char*)addr; + register char *src = (char *)addr; faultbuf env; faultbuf *old_onfault = curpcb->pcb_onfault; if (setfault(env)) { @@ -67,9 +67,9 @@ db_read_bytes(addr, size, data) } if (size == 4) { - *((int*)data) = *((int*)src); + *((int *)data) = *((int *)src); } else if (size == 2) { - *((short*)data) = *((short*)src); + *((short *)data) = *((short *)src); } else { while (size > 0) { --size; @@ -98,9 +98,9 @@ db_write_bytes(addr, size, data) } if (size == 4) { - *((int*)dst) = *((int*)data); + *((int *)dst) = *((int *)data); } else if (size == 2) { - *((short*)dst) = *((short*)data); + *((short *)dst) = *((short *)data); } else { while (size > 0) { --size; diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 5ed759c7b5c..7900f832b39 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.29 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.30 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -168,8 +168,8 @@ int power4e_get_eth_addr(void); void nameinterrupt(int replace, char *newstr); void ppc_intr_setup(intr_establish_t *establish, intr_disestablish_t *disestablish); -void *ppc_intr_establish __P((void *lcv, pci_intr_handle_t ih, int type, - int level, int (*func)(void *), void *arg, char *name)); +void *ppc_intr_establish(void *lcv, pci_intr_handle_t ih, int type, + int level, int (*func)(void *), void *arg, char *name); int bus_mem_add_mapping(bus_addr_t bpa, bus_size_t size, int cacheable, bus_space_handle_t *bshp); @@ -690,7 +690,7 @@ setregs(p, pack, stack, retval) pargs = -roundup(-stack + 8, 16); newstack = (u_int32_t)(pargs - 32); - copyin ((void*)(VM_MAX_ADDRESS-0x10), &args, 0x10); + copyin ((void *)(VM_MAX_ADDRESS-0x10), &args, 0x10); bzero(tf, sizeof *tf); tf->fixreg[1] = newstack; @@ -1287,7 +1287,7 @@ mapiodev(pa, len) spa += PAGE_SIZE; vaddr += PAGE_SIZE; } - return (void*) (va+off); + return (void *) (va+off); } void unmapiodev(kva, p_size) diff --git a/sys/arch/macppc/macppc/mainbus.c b/sys/arch/macppc/macppc/mainbus.c index b70fe629442..c8333b619a5 100644 --- a/sys/arch/macppc/macppc/mainbus.c +++ b/sys/arch/macppc/macppc/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.3 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: mainbus.c,v 1.4 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -52,7 +52,7 @@ struct cfdriver mainbus_cd = { NULL, "mainbus", DV_DULL, NULL, 0 }; -void mb_intr_establish __P((struct confargs *, int (*)(void *), void *)); +void mb_intr_establish(struct confargs *, int (*)(void *), void *); void mb_intr_disestablish(struct confargs *); caddr_t mb_cvtaddr(struct confargs *); int mb_matchname(struct confargs *, char *); diff --git a/sys/arch/macppc/pci/macobio.c b/sys/arch/macppc/pci/macobio.c index 47ff27afab2..32411cc17f3 100644 --- a/sys/arch/macppc/pci/macobio.c +++ b/sys/arch/macppc/pci/macobio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macobio.c,v 1.3 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: macobio.c,v 1.4 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: obio.c,v 1.6 1999/05/01 10:36:08 tsubai Exp $ */ /*- @@ -49,8 +49,8 @@ void macobio_attach(struct device *, struct device *, void *); int macobio_match(struct device *, void *, void *); int macobio_print(void *, const char *); -void *undef_mac_establish __P((void * lcv, int irq, int type, int level, - int (*ih_fun)(void *), void *ih_arg, char *name)); +void *undef_mac_establish(void * lcv, int irq, int type, int level, + int (*ih_fun)(void *), void *ih_arg, char *name); void mac_intr_disestab(void *lcp, void *arg); struct macobio_softc { diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c index 4899cf4ba72..29fe192b517 100644 --- a/sys/arch/macppc/pci/mpcpcibus.c +++ b/sys/arch/macppc/pci/mpcpcibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpcpcibus.c,v 1.8 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: mpcpcibus.c,v 1.9 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -78,8 +78,8 @@ void mpc_conf_write(void *, pcitag_t, int, pcireg_t); int mpc_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *mpc_intr_string(void *, pci_intr_handle_t); int mpc_intr_line(void *, pci_intr_handle_t); -void *mpc_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *mpc_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void mpc_intr_disestablish(void *, void *); int mpc_ether_hw_addr(struct ppc_pci_chipset *, u_int8_t *); u_int32_t mpc_gen_config_reg(void *cpv, pcitag_t tag, int offset); diff --git a/sys/arch/macppc/pci/vgafbvar.h b/sys/arch/macppc/pci/vgafbvar.h index cfb9cd1c7aa..79e5042655f 100644 --- a/sys/arch/macppc/pci/vgafbvar.h +++ b/sys/arch/macppc/pci/vgafbvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafbvar.h,v 1.3 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: vgafbvar.h,v 1.4 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: vgavar.h,v 1.2 1996/11/23 06:06:43 cgd Exp $ */ /* @@ -81,5 +81,5 @@ paddr_t vgafb_mmap(void *, off_t, int); int vgafb_alloc_screen(void *v, const struct wsscreen_descr *type, void **cookiep, int *curxp, int *curyp, long *attrp); void vgafb_free_screen(void *v, void *cookie); -int vgafb_show_screen __P((void *v, void *cookie, int waitok, - void (*cb)(void *, int, int), void *cbarg)); +int vgafb_show_screen(void *v, void *cookie, int waitok, + void (*cb)(void *, int, int), void *cbarg); diff --git a/sys/arch/macppc/stand/alloc.c b/sys/arch/macppc/stand/alloc.c index f6b6f65cc16..2c49b93adb6 100644 --- a/sys/arch/macppc/stand/alloc.c +++ b/sys/arch/macppc/stand/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.1 2001/09/01 15:39:02 drahn Exp $ */ +/* $OpenBSD: alloc.c,v 1.2 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: alloc.c,v 1.1 1997/04/16 20:29:16 thorpej Exp $ */ /* @@ -181,7 +181,7 @@ free(ptr, size) void *ptr; unsigned size; /* only for consistenct check */ { - register struct ml *a = (struct ml *)((char*)ptr - OVERHEAD); + register struct ml *a = (struct ml *)((char *)ptr - OVERHEAD); #ifdef ALLOC_TRACE printf("free(%lx, %u) (origsize %u)\n", (u_long)ptr, size, a->size); diff --git a/sys/arch/macppc/stand/boot.c b/sys/arch/macppc/stand/boot.c index 906e5f3222b..43b296e19df 100644 --- a/sys/arch/macppc/stand/boot.c +++ b/sys/arch/macppc/stand/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.4 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: boot.c,v 1.5 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: boot.c,v 1.1 1997/04/16 20:29:17 thorpej Exp $ */ /* @@ -245,7 +245,7 @@ main() ssym = (void *)marks[MARK_SYM]; esym = (void *)marks[MARK_END]; - chain ((void*)entry, bootline, ssym, esym); + chain ((void *)entry, bootline, ssym, esym); _rtt(); return 0; diff --git a/sys/arch/macppc/stand/openfirm.h b/sys/arch/macppc/stand/openfirm.h index b1cd3fefad3..b374e8df782 100644 --- a/sys/arch/macppc/stand/openfirm.h +++ b/sys/arch/macppc/stand/openfirm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: openfirm.h,v 1.2 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: openfirm.h,v 1.3 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: openfirm.h,v 1.1 1997/04/16 20:29:23 thorpej Exp $ */ /* @@ -52,5 +52,5 @@ int OF_seek(int handle, u_quad_t pos); void *OF_claim(void *virt, u_int size, u_int align); void OF_release(void *virt, u_int size); int OF_milliseconds(void); -void OF_chain __P((void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen)); +void OF_chain(void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen); diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c index 66deacb69a6..9bf8c735b4f 100644 --- a/sys/arch/mvme68k/dev/cl.c +++ b/sys/arch/mvme68k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.24 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: cl.c,v 1.25 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -193,7 +193,7 @@ int clstop(struct tty *tp, int flag); static void cl_initchannel(struct clsoftc *sc, int channel); static void clputc(struct clsoftc *sc, int unit, u_char c); static u_char clgetc(struct clsoftc *sc, int *channel); -static void cloutput __P( (struct tty *tp)); +static void cloutput(struct tty *tp); void cl_softint(struct clsoftc *sc); void cl_appendbufn(struct clsoftc *sc, u_char channel, u_char *buf, u_short cnt); diff --git a/sys/arch/mvme68k/dev/sbic.c b/sys/arch/mvme68k/dev/sbic.c index f396e4bc08b..4845d9173b2 100644 --- a/sys/arch/mvme68k/dev/sbic.c +++ b/sys/arch/mvme68k/dev/sbic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbic.c,v 1.9 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: sbic.c,v 1.10 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: sbic.c,v 1.2 1996/04/23 16:32:54 chuck Exp $ */ /* @@ -317,7 +317,7 @@ sbic_load_ptrs(dev) for (count = (NBPG - ((int)vaddr & PGOFSET)); count < acb->sc_kv.dc_count && - (char*)kvtop(vaddr + count + 4) == paddr + count + 4; + (char *)kvtop(vaddr + count + 4) == paddr + count + 4; count += NBPG) ; /* Do nothing */ diff --git a/sys/arch/mvme68k/dev/wl.c b/sys/arch/mvme68k/dev/wl.c index 8a5638cea2d..15b9c02f714 100644 --- a/sys/arch/mvme68k/dev/wl.c +++ b/sys/arch/mvme68k/dev/wl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wl.c,v 1.7 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: wl.c,v 1.8 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -197,7 +197,7 @@ int wlstop(struct tty *tp, int flag); static void cl_initchannel(struct wlsoftc *sc, int channel); static void clputc(struct wlsoftc *sc, int unit, u_char c); static u_char clgetc(struct wlsoftc *sc, int *channel); -static void cloutput __P( (struct tty *tp)); +static void cloutput(struct tty *tp); struct cfattach wl_ca = { sizeof(struct wlsoftc), wlprobe, wlattach diff --git a/sys/arch/mvme68k/include/intr.h b/sys/arch/mvme68k/include/intr.h index cd0c173bb3d..f13dd140750 100644 --- a/sys/arch/mvme68k/include/intr.h +++ b/sys/arch/mvme68k/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.5 2002/03/14 01:26:37 millert Exp $ */ +/* $OpenBSD: intr.h,v 1.6 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (C) 2000 Steve Murphree, Jr. * All rights reserved. @@ -42,7 +42,7 @@ extern unsigned char ssir; #define setsoftint(x) ssir |= (x) #define setsoftnet() ssir |= SIR_NET #define setsoftclock() ssir |= SIR_CLOCK -u_long allocate_sir __P((void (*proc)(), void *arg)); +u_long allocate_sir(void (*proc)(), void *arg); #define _spl(s) \ ({ \ diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c index f1204e95efa..d6c7ee3c020 100644 --- a/sys/arch/mvme68k/mvme68k/machdep.c +++ b/sys/arch/mvme68k/mvme68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.65 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.66 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -1215,9 +1215,9 @@ memsize(void) /* * count it up. */ - max = (void*)MAXPHYSMEM; - for (look = (void*)Roundup(end, STRIDE); look < max; - look = (int*)((unsigned)look + STRIDE)) { + max = (void *)MAXPHYSMEM; + for (look = (void *)Roundup(end, STRIDE); look < max; + look = (int *)((unsigned)look + STRIDE)) { unsigned save; if (badvaddr((caddr_t)look, 2)) { diff --git a/sys/arch/mvme68k/stand/bootst/dev_tape.c b/sys/arch/mvme68k/stand/bootst/dev_tape.c index bab26011d4d..b2edf7b5747 100644 --- a/sys/arch/mvme68k/stand/bootst/dev_tape.c +++ b/sys/arch/mvme68k/stand/bootst/dev_tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_tape.c,v 1.2 2001/07/04 08:06:54 niklas Exp $ */ +/* $OpenBSD: dev_tape.c,v 1.3 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: dev_tape.c,v 1.2 1995/10/17 22:58:20 gwr Exp $ */ /* @@ -63,7 +63,7 @@ devopen(f, fname, file) struct devsw *dp; int error; - *file = (char*)fname; + *file = (char *)fname; dp = &devsw[0]; f->f_dev = dp; diff --git a/sys/arch/mvme68k/stand/bootxx/bootxx.c b/sys/arch/mvme68k/stand/bootxx/bootxx.c index 8e4c83b4af5..27bfa242dc4 100644 --- a/sys/arch/mvme68k/stand/bootxx/bootxx.c +++ b/sys/arch/mvme68k/stand/bootxx/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.4 2001/07/04 08:06:55 niklas Exp $ */ +/* $OpenBSD: bootxx.c,v 1.5 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: bootxx.c,v 1.5 1995/10/13 21:44:57 gwr Exp $ */ /* @@ -87,7 +87,7 @@ main() _rtt(); } - addr = (char*)LOADADDR; + addr = (char *)LOADADDR; error = copyboot(&f, addr); f.f_dev->dv_close(&f); if (!error) { diff --git a/sys/arch/mvme68k/stand/installboot/installboot.c b/sys/arch/mvme68k/stand/installboot/installboot.c index c6850974557..9d75b14e384 100644 --- a/sys/arch/mvme68k/stand/installboot/installboot.c +++ b/sys/arch/mvme68k/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.6 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: installboot.c,v 1.7 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -74,7 +74,7 @@ int loadblocknums(char *, int); static void devread(int, void *, daddr_t, size_t, char *); static void usage(void); int main(int, char *[]); -static void vid_to_disklabel(char *, char*); +static void vid_to_disklabel(char *, char *); static void diff --git a/sys/arch/mvme68k/stand/libbug/libbug.h b/sys/arch/mvme68k/stand/libbug/libbug.h index f0a65a6a1ec..59ee95528c3 100644 --- a/sys/arch/mvme68k/stand/libbug/libbug.h +++ b/sys/arch/mvme68k/stand/libbug/libbug.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libbug.h,v 1.2 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: libbug.h,v 1.3 2002/03/14 03:15:56 millert Exp $ */ /* * prototypes and such. note that get/put char are in stand.h @@ -20,4 +20,4 @@ void mvmeprom_rtc_rd(struct mvmeprom_time *); extern struct mvmeprom_args bugargs; -void bugexec __P((void (*)())); +void bugexec(void (*)()); diff --git a/sys/arch/mvme68k/stand/libsa/exec_mvme.c b/sys/arch/mvme68k/stand/libsa/exec_mvme.c index 6cfb867abc8..e8ea192ccbb 100644 --- a/sys/arch/mvme68k/stand/libsa/exec_mvme.c +++ b/sys/arch/mvme68k/stand/libsa/exec_mvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_mvme.c,v 1.3 2001/07/04 08:06:56 niklas Exp $ */ +/* $OpenBSD: exec_mvme.c,v 1.4 2002/03/14 03:15:56 millert Exp $ */ /* $NetBSD: exec_sun.c,v 1.5 1996/01/29 23:41:06 gwr Exp $ */ /*- @@ -140,9 +140,9 @@ exec_mvme(file, flag) *cp++ = 0; --cc; } - ip = (int*)cp; + ip = (int *)cp; cp += cc; - while ((char*)ip < cp) + while ((char *)ip < cp) *ip++ = 0; /* @@ -150,7 +150,7 @@ exec_mvme(file, flag) * (Always set the symtab size word.) */ *ip++ = x.a_syms; - cp = (char*) ip; + cp = (char *) ip; if (x.a_syms > 0 && (flag & RB_NOSYM) == 0) { @@ -161,7 +161,7 @@ exec_mvme(file, flag) if (read(io, cp, cc) != cc) goto shread; cp += x.a_syms; - ip = (int*)cp; /* points to strtab length */ + ip = (int *)cp; /* points to strtab length */ cp += sizeof(int); /* String table. Length word includes itself. */ diff --git a/sys/arch/mvme68k/stand/netboot/devopen.c b/sys/arch/mvme68k/stand/netboot/devopen.c index 407341c612e..ebc264f105f 100644 --- a/sys/arch/mvme68k/stand/netboot/devopen.c +++ b/sys/arch/mvme68k/stand/netboot/devopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devopen.c,v 1.1 1996/05/16 02:52:05 chuck Exp $ */ +/* $OpenBSD: devopen.c,v 1.2 2002/03/14 03:15:56 millert Exp $ */ #include <sys/param.h> #include <stand.h> @@ -23,7 +23,7 @@ devopen(f, fname, file) char *cp, *path, *devname; int error; - *file = (char*)fname; + *file = (char *)fname; dp = &devsw[0]; f->f_dev = dp; error = (*dp->dv_open)(f, NULL); diff --git a/sys/arch/mvme68k/stand/sboot/sboot.h b/sys/arch/mvme68k/stand/sboot/sboot.h index aed437d3897..31b40d75d8a 100644 --- a/sys/arch/mvme68k/stand/sboot/sboot.h +++ b/sys/arch/mvme68k/stand/sboot/sboot.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sboot.h,v 1.7 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: sboot.h,v 1.8 2002/03/14 03:15:56 millert Exp $ */ /* * Copyright (c) 1995 Charles D. Cranor and Seth Widoff @@ -43,7 +43,7 @@ char *ngets(char *, int); /* sboot */ void callrom(void); -void do_cmd(char *, char*); +void do_cmd(char *, char *); /* le */ #define LANCE_ADDR 0xfffe0778 diff --git a/sys/arch/mvme88k/ddb/db_interface.c b/sys/arch/mvme88k/ddb/db_interface.c index ff7fd802a1b..e2480be5cf8 100644 --- a/sys/arch/mvme88k/ddb/db_interface.c +++ b/sys/arch/mvme88k/ddb/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.25 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: db_interface.c,v 1.26 2002/03/14 03:15:56 millert Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -918,6 +918,6 @@ db_task_name() buffer[i] = 0; /* just in case it's not read */ db_trace_get_val((vm_offset_t)ptr, &buffer[i]); } - return (char*)buffer; + return (char *)buffer; } diff --git a/sys/arch/mvme88k/ddb/db_trace.c b/sys/arch/mvme88k/ddb/db_trace.c index 4cb68afddcf..0a9d0ea83ad 100644 --- a/sys/arch/mvme88k/ddb/db_trace.c +++ b/sys/arch/mvme88k/ddb/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.13 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.14 2002/03/14 03:15:57 millert Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -381,7 +381,7 @@ db_trace_get_val(vm_offset_t addr, unsigned *ptr) quiet_db_read_bytes = old_quiet_db_read_bytes; return 0; } else { - db_read_bytes(addr, 4, (char*)ptr); + db_read_bytes(addr, 4, (char *)ptr); db_recover = prev; quiet_db_read_bytes = old_quiet_db_read_bytes; return 1; @@ -934,7 +934,7 @@ db_stack_trace_cmd2(db_regs_t *regs) badwordaddr((vm_offset_t)(stack+4))) break; - db_read_bytes((vm_offset_t)stack, 2*sizeof(int), (char*)pair); + db_read_bytes((vm_offset_t)stack, 2*sizeof(int), (char *)pair); /* the pairs should match and equal stack+8 */ if (pair[0] == pair[1]) { @@ -984,7 +984,7 @@ db_stack_trace_cmd2(db_regs_t *regs) badwordaddr((vm_offset_t)stack)) return; - db_read_bytes((vm_offset_t)stack, 2*sizeof(int), (char*)pair); + db_read_bytes((vm_offset_t)stack, 2*sizeof(int), (char *)pair); if (pair[0] != pair[1]) return; @@ -1079,7 +1079,7 @@ db_stack_trace_cmd(db_regs_t *addr, { unsigned val1, val2, sxip; unsigned ptr; - bzero((void*)&frame, sizeof(frame)); + bzero((void *)&frame, sizeof(frame)); #define REASONABLE_FRAME_DISTANCE 2048 /* diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index 9ff1f201562..8be0dcb096f 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.22 2002/03/14 01:26:39 millert Exp $ */ +/* $OpenBSD: cl.c,v 1.23 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -195,7 +195,7 @@ void cl_initchannel(struct clsoftc *sc, int channel); void clputc(struct clsoftc *sc, int unit, u_char c); u_char clgetc(struct clsoftc *sc, int *channel); #if 0 -void cloutput __P( (struct tty *tp)); +void cloutput(struct tty *tp); #endif #ifdef CLCD_DO_POLLED_INPUT void cl_chkinput(void); @@ -1663,7 +1663,7 @@ cl_rxintr(arg) } else /* We don't need no sinkin special characters */ if (risrl & 0x08) { - cl_overflow (sc, channel, (long*)&sc->sc_fotime, "fifo"); + cl_overflow (sc, channel, (long *)&sc->sc_fotime, "fifo"); reoir = 0x08; } else if (risrl & 0x04) { diff --git a/sys/arch/mvme88k/dev/vmel.c b/sys/arch/mvme88k/dev/vmel.c index d6b0354e693..7881d1e1295 100644 --- a/sys/arch/mvme88k/dev/vmel.c +++ b/sys/arch/mvme88k/dev/vmel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmel.c,v 1.8 2002/03/14 01:26:39 millert Exp $ */ +/* $OpenBSD: vmel.c,v 1.9 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -59,7 +59,7 @@ struct cfdriver vmel_cd = { NULL, "vmel", DV_DULL, 0 }; -int vmelscan(struct device *, void *, void*); +int vmelscan(struct device *, void *, void *); int vmelopen(dev_t, int, int); int vmelclose(dev_t, int, int); int vmelioctl(dev_t, int, caddr_t, int, struct proc *); diff --git a/sys/arch/mvme88k/dev/vmes.c b/sys/arch/mvme88k/dev/vmes.c index 0a4b0f87d79..94d8db82de4 100644 --- a/sys/arch/mvme88k/dev/vmes.c +++ b/sys/arch/mvme88k/dev/vmes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmes.c,v 1.8 2002/03/14 01:26:39 millert Exp $ */ +/* $OpenBSD: vmes.c,v 1.9 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -59,7 +59,7 @@ struct cfdriver vmes_cd = { NULL, "vmes", DV_DULL, 0 }; -int vmesscan(struct device *, void *, void*); +int vmesscan(struct device *, void *, void *); int vmesopen(dev_t, int, int); int vmesclose(dev_t, int, int); int vmesioctl(dev_t, int, caddr_t, int, struct proc *); diff --git a/sys/arch/mvme88k/dev/vx.c b/sys/arch/mvme88k/dev/vx.c index 4b3ace157c8..a14c22f3c47 100644 --- a/sys/arch/mvme88k/dev/vx.c +++ b/sys/arch/mvme88k/dev/vx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vx.c,v 1.18 2002/03/14 01:26:39 millert Exp $ */ +/* $OpenBSD: vx.c,v 1.19 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * All rights reserved. @@ -1312,8 +1312,8 @@ memcpy2(void *dest, const void *src, size_t size) { int i; short *d, *s; - d = (short*) dest; - s = (short*) src; + d = (short *) dest; + s = (short *) src; for (i=0; i<(size/2); i++) { *d = *s; d++; @@ -1326,7 +1326,7 @@ wzero(void *addr, size_t size) { int i; short *d; - d = (short*) addr; + d = (short *) addr; for (i=0; i<(size/2); i++) { *d = 0; d++; @@ -1395,7 +1395,7 @@ put_free_envelope(sc, ep) sc->elist_tail = envp; } -void* +void * get_free_packet(sc) struct vxsoftc *sc; { @@ -1591,7 +1591,7 @@ get_packet(sc, thisenv) * offset to the board address */ baseaddr |= thisenv->packet_ptr; - return ((void*)baseaddr); + return ((void *)baseaddr); } /* diff --git a/sys/arch/mvme88k/include/ansi.h b/sys/arch/mvme88k/include/ansi.h index b613ff06231..f5371e77b29 100644 --- a/sys/arch/mvme88k/include/ansi.h +++ b/sys/arch/mvme88k/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.11 2001/08/11 23:51:28 miod Exp $ */ +/* $OpenBSD: ansi.h,v 1.12 2002/03/14 03:15:57 millert Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -55,7 +55,7 @@ #define _BSD_TIMER_T_ int #if 0 -#define _BSD_VA_LIST_ char* /* va_list */ +#define _BSD_VA_LIST_ char * /* va_list */ #endif #include "va-m88k.h" diff --git a/sys/arch/mvme88k/include/db_machdep.h b/sys/arch/mvme88k/include/db_machdep.h index 0cb1ce46d6f..1ae049ebddf 100644 --- a/sys/arch/mvme88k/include/db_machdep.h +++ b/sys/arch/mvme88k/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.20 2002/03/14 01:26:39 millert Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.21 2002/03/14 03:15:57 millert Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -120,9 +120,8 @@ unsigned inst_load(unsigned); unsigned inst_store(unsigned); boolean_t inst_branch(unsigned); db_addr_t next_instr_address(db_addr_t, unsigned); -db_addr_t branch_taken __P((u_int, db_addr_t, - db_expr_t (*)(db_regs_t *, int), - db_regs_t *)); +db_addr_t branch_taken(u_int, db_addr_t, db_expr_t (*)(db_regs_t *, int), + db_regs_t *); int ddb_break_trap(int type, db_regs_t *eframe); int ddb_entry_trap(int level, db_regs_t *eframe); @@ -152,7 +151,7 @@ void db_clear_single_step(register db_regs_t *); #define DB_ACCESS_LEVEL DB_ACCESS_ANY -#define DB_VALID_KERN_ADDR(addr) (!badaddr((void*)(addr), 1)) +#define DB_VALID_KERN_ADDR(addr) (!badaddr((void *)(addr), 1)) #define DB_VALID_ADDRESS(addr,user) \ (user ? db_check_user_addr(addr) : DB_VALID_KERN_ADDR(addr)) diff --git a/sys/arch/mvme88k/include/trap.h b/sys/arch/mvme88k/include/trap.h index 702375ca1ad..b51392cee68 100644 --- a/sys/arch/mvme88k/include/trap.h +++ b/sys/arch/mvme88k/include/trap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.h,v 1.16 2002/03/14 01:26:39 millert Exp $ */ +/* $OpenBSD: trap.h,v 1.17 2002/03/14 03:15:57 millert Exp $ */ /* * Mach Operating System * Copyright (c) 1992 Carnegie Mellon University @@ -79,9 +79,9 @@ void error_fault(struct m88100_saved_state *); void error_reset(struct m88100_saved_state *); unsigned ss_get_value(struct proc *, unsigned, int); int ss_put_value(struct proc *, unsigned, unsigned, int); -unsigned ss_branch_taken __P((unsigned, unsigned, - unsigned (*func)(unsigned int, struct trapframe *), - struct trapframe *)); /* 'opaque' */ +unsigned ss_branch_taken(unsigned, unsigned, + unsigned (*func)(unsigned int, struct trapframe *), + struct trapframe *); /* 'opaque' */ unsigned ss_getreg_val(unsigned, struct trapframe *); int ss_inst_branch(unsigned); int ss_inst_delayed(unsigned); diff --git a/sys/arch/mvme88k/mvme88k/m8820x.c b/sys/arch/mvme88k/mvme88k/m8820x.c index 96f142110dd..736d6d5b042 100644 --- a/sys/arch/mvme88k/mvme88k/m8820x.c +++ b/sys/arch/mvme88k/mvme88k/m8820x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: m8820x.c,v 1.13 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: m8820x.c,v 1.14 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -664,7 +664,7 @@ m8820x_cmmu_store(mmu, reg, val) int mmu, reg; unsigned val; { - *(unsigned *volatile)(reg + (char*)(m8820x_cmmu[mmu].cmmu_regs)) = val; + *(unsigned *volatile)(reg + (char *)(m8820x_cmmu[mmu].cmmu_regs)) = val; } int @@ -678,7 +678,7 @@ unsigned m8820x_cmmu_get(mmu, reg) int mmu, reg; { - return *(unsigned *volatile)(reg + (char*)(m8820x_cmmu[mmu].cmmu_regs)); + return *(unsigned *volatile)(reg + (char *)(m8820x_cmmu[mmu].cmmu_regs)); } /* @@ -1080,7 +1080,7 @@ m8820x_cmmu_cpu_number() void m8820x_cmmu_remote_set(unsigned cpu, unsigned r, unsigned data, unsigned x) { - *(unsigned *volatile)(r + (char*)®S(cpu,data)) = x; + *(unsigned *volatile)(r + (char *)®S(cpu,data)) = x; } /* @@ -1090,7 +1090,7 @@ m8820x_cmmu_remote_set(unsigned cpu, unsigned r, unsigned data, unsigned x) unsigned m8820x_cmmu_remote_get(unsigned cpu, unsigned r, unsigned data) { - return (*(unsigned *volatile)(r + (char*)®S(cpu,data))); + return (*(unsigned *volatile)(r + (char *)®S(cpu,data))); } #endif diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index bf3438bc6ad..9f261ce0bd9 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.91 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.92 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -327,9 +327,9 @@ size_memory() /* * count it up. */ - max = (void*)MAXPHYSMEM; - for (look = (void*)Roundup(end, STRIDE); look < max; - look = (int*)((unsigned)look + STRIDE)) { + max = (void *)MAXPHYSMEM; + for (look = (void *)Roundup(end, STRIDE); look < max; + look = (int *)((unsigned)look + STRIDE)) { unsigned save; /* if can't access, we've reached the end */ diff --git a/sys/arch/mvme88k/mvme88k/pmap.c b/sys/arch/mvme88k/mvme88k/pmap.c index 1a29be34867..df791879176 100644 --- a/sys/arch/mvme88k/mvme88k/pmap.c +++ b/sys/arch/mvme88k/mvme88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.64 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: pmap.c,v 1.65 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 2001, 2002 Miodrag Vallat * Copyright (c) 1998-2001 Steve Murphree, Jr. @@ -1328,7 +1328,7 @@ pmap_zero_page(phys) CACHE_GLOBAL | PG_V; SPLX(spl); - bzero((void*)srcva, PAGE_SIZE); + bzero((void *)srcva, PAGE_SIZE); /* force the data out */ cmmu_flush_remote_data_cache(cpu, phys, PAGE_SIZE); } /* pmap_zero_page() */ @@ -2882,7 +2882,7 @@ pmap_copy_page(src, dst) *dstpte = template | trunc_page(dst); SPLX(spl); - bcopy((void*)srcva, (void*)dstva, PAGE_SIZE); + bcopy((void *)srcva, (void *)dstva, PAGE_SIZE); /* flush source, dest out of cache? */ cmmu_flush_remote_data_cache(cpu, src, PAGE_SIZE); cmmu_flush_remote_data_cache(cpu, dst, PAGE_SIZE); diff --git a/sys/arch/mvme88k/stand/bootst/dev_tape.c b/sys/arch/mvme88k/stand/bootst/dev_tape.c index 1362a3b1796..a4352b8def7 100644 --- a/sys/arch/mvme88k/stand/bootst/dev_tape.c +++ b/sys/arch/mvme88k/stand/bootst/dev_tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_tape.c,v 1.1 1998/12/15 06:09:51 smurph Exp $ */ +/* $OpenBSD: dev_tape.c,v 1.2 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1993 Paul Kranenburg @@ -61,7 +61,7 @@ devopen(f, fname, file) struct devsw *dp; int errorno; - *file = (char*)fname; + *file = (char *)fname; dp = &devsw[0]; f->f_dev = dp; diff --git a/sys/arch/mvme88k/stand/bootxx/bootxx.c b/sys/arch/mvme88k/stand/bootxx/bootxx.c index f7ac21944cf..c5805457543 100644 --- a/sys/arch/mvme88k/stand/bootxx/bootxx.c +++ b/sys/arch/mvme88k/stand/bootxx/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.4 2001/01/13 05:19:01 smurph Exp $ */ +/* $OpenBSD: bootxx.c,v 1.5 2002/03/14 03:15:57 millert Exp $ */ /* * Copyright (c) 1994 Paul Kranenburg @@ -84,7 +84,7 @@ main() _rtt(); } - addr = (char*)STAGE2_RELOC; + addr = (char *)STAGE2_RELOC; error = copyboot(&f, addr); f.f_dev->dv_close(&f); if (!error) { diff --git a/sys/arch/mvme88k/stand/installboot/installboot.c b/sys/arch/mvme88k/stand/installboot/installboot.c index 25a199553c9..19fc29f7f66 100644 --- a/sys/arch/mvme88k/stand/installboot/installboot.c +++ b/sys/arch/mvme88k/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.5 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: installboot.c,v 1.6 2002/03/14 03:15:57 millert Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -74,7 +74,7 @@ int loadblocknums(char *, int); static void devread(int, void *, daddr_t, size_t, char *); static void usage(void); int main(int, char *[]); -static void vid_to_disklabel(char *, char*); +static void vid_to_disklabel(char *, char *); static void diff --git a/sys/arch/mvme88k/stand/libbug/libbug.h b/sys/arch/mvme88k/stand/libbug/libbug.h index 11e000195f1..f5325292ce7 100644 --- a/sys/arch/mvme88k/stand/libbug/libbug.h +++ b/sys/arch/mvme88k/stand/libbug/libbug.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libbug.h,v 1.2 2002/03/14 01:26:40 millert Exp $ */ +/* $OpenBSD: libbug.h,v 1.3 2002/03/14 03:15:57 millert Exp $ */ /* * prototypes and such. note that get/put char are in stand.h @@ -20,4 +20,4 @@ void mvmeprom_rtc_rd(struct mvmeprom_time *); extern struct mvmeprom_args bugargs; -void bugexec __P((void (*)())); +void bugexec(void (*)()); diff --git a/sys/arch/mvme88k/stand/libsa/exec_mvme.c b/sys/arch/mvme88k/stand/libsa/exec_mvme.c index 911be2e269a..97a5e5faac0 100644 --- a/sys/arch/mvme88k/stand/libsa/exec_mvme.c +++ b/sys/arch/mvme88k/stand/libsa/exec_mvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_mvme.c,v 1.7 2001/07/04 08:09:30 niklas Exp $ */ +/* $OpenBSD: exec_mvme.c,v 1.8 2002/03/14 03:15:58 millert Exp $ */ /*- @@ -154,9 +154,9 @@ exec_mvme(file, flag) *cp++ = 0; --cc; } - ip = (int*)cp; + ip = (int *)cp; cp += cc; - while ((char*)ip < cp) + while ((char *)ip < cp) *ip++ = 0; /* @@ -164,7 +164,7 @@ exec_mvme(file, flag) * (Always set the symtab size word.) */ *ip++ = x.a_syms; - cp = (char*) ip; + cp = (char *) ip; if (x.a_syms > 0 && (flag & RB_NOSYM) == 0) { @@ -175,7 +175,7 @@ exec_mvme(file, flag) if (read(io, cp, cc) != cc) goto shread; cp += x.a_syms; - ip = (int*)cp; /* points to strtab length */ + ip = (int *)cp; /* points to strtab length */ cp += sizeof(int); /* String table. Length word includes itself. */ diff --git a/sys/arch/mvme88k/stand/netboot/devopen.c b/sys/arch/mvme88k/stand/netboot/devopen.c index 7e02e4bb845..e8d4893bf24 100644 --- a/sys/arch/mvme88k/stand/netboot/devopen.c +++ b/sys/arch/mvme88k/stand/netboot/devopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devopen.c,v 1.1 1998/08/22 08:37:58 smurph Exp $ */ +/* $OpenBSD: devopen.c,v 1.2 2002/03/14 03:15:58 millert Exp $ */ #include <sys/param.h> #include <stand.h> @@ -23,7 +23,7 @@ devopen(f, fname, file) char *cp, *path, *devname; int error; - *file = (char*)fname; + *file = (char *)fname; dp = &devsw[0]; f->f_dev = dp; error = (*dp->dv_open)(f, NULL); diff --git a/sys/arch/mvmeppc/ddb/db_memrw.c b/sys/arch/mvmeppc/ddb/db_memrw.c index 62f7d37cb10..9909ce2ddff 100644 --- a/sys/arch/mvmeppc/ddb/db_memrw.c +++ b/sys/arch/mvmeppc/ddb/db_memrw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_memrw.c,v 1.2 2001/11/06 19:53:15 miod Exp $ */ +/* $OpenBSD: db_memrw.c,v 1.3 2002/03/14 03:15:58 millert Exp $ */ /* $NetBSD: db_memrw.c,v 1.1 1996/02/22 23:23:35 gwr Exp $ */ /* @@ -56,15 +56,15 @@ db_read_bytes(addr, size, data) register size_t size; register char *data; { - register char *src = (char*)addr; + register char *src = (char *)addr; if (size == 4) { - *((int*)data) = *((int*)src); + *((int *)data) = *((int *)src); return; } if (size == 2) { - *((short*)data) = *((short*)src); + *((short *)data) = *((short *)src); return; } @@ -86,12 +86,12 @@ db_write_bytes(addr, size, data) register char *dst = (char *)addr; if (size == 4) { - *((int*)dst) = *((int*)data); + *((int *)dst) = *((int *)data); return; } if (size == 2) { - *((short*)dst) = *((short*)data); + *((short *)dst) = *((short *)data); return; } diff --git a/sys/arch/mvmeppc/dev/mainbus.c b/sys/arch/mvmeppc/dev/mainbus.c index e05f756d126..5e7d410e97a 100644 --- a/sys/arch/mvmeppc/dev/mainbus.c +++ b/sys/arch/mvmeppc/dev/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.3 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: mainbus.c,v 1.4 2002/03/14 03:15:58 millert Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -51,7 +51,7 @@ struct cfdriver mainbus_cd = { NULL, "mainbus", DV_DULL, NULL, 0 }; -void mb_intr_establish __P((struct confargs *, int (*)(void *), void *)); +void mb_intr_establish(struct confargs *, int (*)(void *), void *); void mb_intr_disestablish(struct confargs *); caddr_t mb_cvtaddr(struct confargs *); int mb_matchname(struct confargs *, char *); diff --git a/sys/arch/mvmeppc/dev/openpic.c b/sys/arch/mvmeppc/dev/openpic.c index a01dc38ebe7..d987ba026a2 100644 --- a/sys/arch/mvmeppc/dev/openpic.c +++ b/sys/arch/mvmeppc/dev/openpic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openpic.c,v 1.7 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: openpic.c,v 1.8 2002/03/14 03:15:58 millert Exp $ */ /*- * Copyright (c) 1995 Per Fogelstrom @@ -174,8 +174,8 @@ static int i8259_dummy (void *arg); typedef int mac_intr_handle_t; -typedef void *(intr_establish_t) __P((void *, mac_intr_handle_t, - int, int, int (*func)(void *), void *, char *)); +typedef void *(intr_establish_t)(void *, mac_intr_handle_t, + int, int, int (*func)(void *), void *, char *); typedef void (intr_disestablish_t)(void *, void *); static vaddr_t openpic_base; diff --git a/sys/arch/mvmeppc/include/autoconf.h b/sys/arch/mvmeppc/include/autoconf.h index db01a912a72..782fb955262 100644 --- a/sys/arch/mvmeppc/include/autoconf.h +++ b/sys/arch/mvmeppc/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.2 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: autoconf.h,v 1.3 2002/03/14 03:15:58 millert Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -93,8 +93,8 @@ struct confargs { }; -void set_clockintr __P((void (*)(struct clockframe *))); -void set_iointr __P((void (*)(void *, int))); +void set_clockintr(void (*)(struct clockframe *)); +void set_iointr(void (*)(void *, int)); int badaddr(void *, u_int32_t); #endif /* _MACHINE_AUTOCONF_H_ */ diff --git a/sys/arch/mvmeppc/isa/isa_machdep.h b/sys/arch/mvmeppc/isa/isa_machdep.h index 562a793fa1f..7249d0ec941 100644 --- a/sys/arch/mvmeppc/isa/isa_machdep.h +++ b/sys/arch/mvmeppc/isa/isa_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.h,v 1.2 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: isa_machdep.h,v 1.3 2002/03/14 03:15:58 millert Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -54,8 +54,8 @@ struct isabus_attach_args; /* XXX */ */ void isa_attach_hook(struct device *, struct device *, struct isabus_attach_args *); -void *isa_intr_establish __P((isa_chipset_tag_t ic, int irq, int type, - int level, int (*ih_fun)(void *), void *ih_arg, char *ih_what)); +void *isa_intr_establish(isa_chipset_tag_t ic, int irq, int type, + int level, int (*ih_fun)(void *), void *ih_arg, char *ih_what); void isa_intr_disestablish(isa_chipset_tag_t ic, void *handler); #define __NO_ISA_INTR_CHECK diff --git a/sys/arch/mvmeppc/mvmeppc/machdep.c b/sys/arch/mvmeppc/mvmeppc/machdep.c index 8ddb0773321..363e09c8e5e 100644 --- a/sys/arch/mvmeppc/mvmeppc/machdep.c +++ b/sys/arch/mvmeppc/mvmeppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.22 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.23 2002/03/14 03:15:58 millert Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -669,7 +669,7 @@ setregs(p, pack, stack, retval) pargs = -roundup(-stack + 8, 16); newstack = (u_int32_t)(pargs - 32); - copyin ((void*)(VM_MAX_ADDRESS-0x10), &args, 0x10); + copyin ((void *)(VM_MAX_ADDRESS-0x10), &args, 0x10); bzero(tf, sizeof *tf); tf->fixreg[1] = newstack; @@ -984,8 +984,8 @@ systype(char *name) * */ #include <dev/pci/pcivar.h> -typedef void *(intr_establish_t) __P((void *, pci_intr_handle_t, - int, int, int (*func)(void *), void *, char *)); +typedef void *(intr_establish_t)(void *, pci_intr_handle_t, + int, int, int (*func)(void *), void *, char *); typedef void (intr_disestablish_t)(void *, void *); int ppc_configed_intr_cnt = 0; @@ -1234,7 +1234,7 @@ mapiodev(pa, len) spa += NBPG; vaddr += NBPG; } - return (void*) (va+off); + return (void *) (va+off); } void unmapiodev(kva, p_size) diff --git a/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c b/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c index b0465c7fa98..a07b5e6a744 100644 --- a/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c +++ b/sys/arch/mvmeppc/mvmeppc/ppc1_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppc1_machdep.c,v 1.5 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: ppc1_machdep.c,v 1.6 2002/03/14 03:15:58 millert Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ /* @@ -117,9 +117,9 @@ size_memory(void) /* * count it up. */ - max = (void*)MAXPHYSMEM; - for (look = (void*)Roundup(end, STRIDE); look < max; - look = (int*)((unsigned)look + STRIDE)) { + max = (void *)MAXPHYSMEM; + for (look = (void *)Roundup(end, STRIDE); look < max; + look = (int *)((unsigned)look + STRIDE)) { unsigned save; /* if can't access, we've reached the end */ diff --git a/sys/arch/mvmeppc/pci/mpcpcibr.c b/sys/arch/mvmeppc/pci/mpcpcibr.c index fd3377490b8..3709472ca0f 100644 --- a/sys/arch/mvmeppc/pci/mpcpcibr.c +++ b/sys/arch/mvmeppc/pci/mpcpcibr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpcpcibr.c,v 1.8 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: mpcpcibr.c,v 1.9 2002/03/14 03:15:58 millert Exp $ */ /* * Copyright (c) 2001 Steve Murphree, Jr. @@ -69,8 +69,8 @@ void mpc_conf_write(void *, pcitag_t, int, pcireg_t); int mpc_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *mpc_intr_string(void *, pci_intr_handle_t); int mpc_intr_line(void *, pci_intr_handle_t); -void *mpc_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *mpc_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void mpc_intr_disestablish(void *, void *); int mpc_ether_hw_addr(struct ppc_pci_chipset *, u_int8_t *); @@ -537,8 +537,8 @@ mpc_intr_line(lcv, ih) return (ih); } -typedef void *(intr_establish_t) __P((void *, pci_intr_handle_t, - int, int, int (*func)(void *), void *, char *)); +typedef void *(intr_establish_t)(void *, pci_intr_handle_t, + int, int, int (*func)(void *), void *, char *); typedef void (intr_disestablish_t)(void *, void *); extern intr_establish_t *intr_establish_func; extern intr_disestablish_t *intr_disestablish_func; diff --git a/sys/arch/mvmeppc/pci/raven.c b/sys/arch/mvmeppc/pci/raven.c index c94ab28c367..adc95808c64 100644 --- a/sys/arch/mvmeppc/pci/raven.c +++ b/sys/arch/mvmeppc/pci/raven.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raven.c,v 1.6 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: raven.c,v 1.7 2002/03/14 03:15:58 millert Exp $ */ /* * Copyright (c) 2001 Steve Murphree, Jr. @@ -69,8 +69,8 @@ void mpc_conf_write(void *, pcitag_t, int, pcireg_t); int mpc_intr_map(void *, pcitag_t, int, int, pci_intr_handle_t *); const char *mpc_intr_string(void *, pci_intr_handle_t); int mpc_intr_line(void *, pci_intr_handle_t); -void *mpc_intr_establish __P((void *, pci_intr_handle_t, - int, int (*func)(void *), void *, char *)); +void *mpc_intr_establish(void *, pci_intr_handle_t, + int, int (*func)(void *), void *, char *); void mpc_intr_disestablish(void *, void *); int mpc_ether_hw_addr(struct ppc_pci_chipset *, u_int8_t *); @@ -483,8 +483,8 @@ mpc_intr_string(lcv, ih) return (ih); } -typedef void *(intr_establish_t) __P((void *, pci_intr_handle_t, - int, int, int (*func)(void *), void *, char *)); +typedef void *(intr_establish_t)(void *, pci_intr_handle_t, + int, int, int (*func)(void *), void *, char *); typedef void (intr_disestablish_t)(void *, void *); extern intr_establish_t *intr_establish_func; extern intr_disestablish_t *intr_disestablish_func; diff --git a/sys/arch/mvmeppc/stand/bootxx/bootxx.c b/sys/arch/mvmeppc/stand/bootxx/bootxx.c index 451ae40de97..c39339e550d 100644 --- a/sys/arch/mvmeppc/stand/bootxx/bootxx.c +++ b/sys/arch/mvmeppc/stand/bootxx/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.1 2001/06/26 21:58:01 smurph Exp $ */ +/* $OpenBSD: bootxx.c,v 1.2 2002/03/14 03:15:58 millert Exp $ */ /* * Copyright (c) 1994 Paul Kranenburg @@ -86,7 +86,7 @@ main() _rtt(); } - addr = (char*)STAGE2_RELOC; + addr = (char *)STAGE2_RELOC; error = copyboot(&f, addr); f.f_dev->dv_close(&f); if (!error) { diff --git a/sys/arch/mvmeppc/stand/installboot/installboot.c b/sys/arch/mvmeppc/stand/installboot/installboot.c index f7edc6a8277..813ca3042dc 100644 --- a/sys/arch/mvmeppc/stand/installboot/installboot.c +++ b/sys/arch/mvmeppc/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.3 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: installboot.c,v 1.4 2002/03/14 03:15:58 millert Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -74,7 +74,7 @@ int loadblocknums(char *, int); static void devread(int, void *, daddr_t, size_t, char *); static void usage(void); int main(int, char *[]); -static void vid_to_disklabel(char *, char*); +static void vid_to_disklabel(char *, char *); static void diff --git a/sys/arch/mvmeppc/stand/libbug/libbug.h b/sys/arch/mvmeppc/stand/libbug/libbug.h index fb2148fa7a5..0a0aa465b61 100644 --- a/sys/arch/mvmeppc/stand/libbug/libbug.h +++ b/sys/arch/mvmeppc/stand/libbug/libbug.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libbug.h,v 1.2 2002/03/14 01:26:41 millert Exp $ */ +/* $OpenBSD: libbug.h,v 1.3 2002/03/14 03:15:58 millert Exp $ */ /* * prototypes and such. note that get/put char are in stand.h @@ -26,4 +26,4 @@ int mvmeprom_netctrl_reset(u_char, u_char); extern struct mvmeprom_args bugargs; -void bugexec __P((void (*)())); +void bugexec(void (*)()); diff --git a/sys/arch/powerpc/pci/pci_machdep.h b/sys/arch/powerpc/pci/pci_machdep.h index 2b73c1ef8a8..43ac1e753b6 100644 --- a/sys/arch/powerpc/pci/pci_machdep.h +++ b/sys/arch/powerpc/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.10 2002/03/14 01:26:42 millert Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.11 2002/03/14 03:15:59 millert Exp $ */ /* * Copyright (c) 1996 Carnegie-Mellon University. @@ -58,8 +58,8 @@ struct ppc_pci_chipset { pci_intr_handle_t *); const char *(*pc_intr_string)(void *, pci_intr_handle_t); int (*pc_intr_line)(void *, pci_intr_handle_t); - void *(*pc_intr_establish) __P((void *, pci_intr_handle_t, - int, int (*)(void *), void *, char *)); + void *(*pc_intr_establish)(void *, pci_intr_handle_t, + int, int (*)(void *), void *, char *); void (*pc_intr_disestablish)(void *, void *); int (*pc_ether_hw_addr)(struct ppc_pci_chipset *, u_int8_t *); }; diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c index 243f6a85a5e..4d9a32bf2ff 100644 --- a/sys/arch/powerpc/powerpc/pmap.c +++ b/sys/arch/powerpc/powerpc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.60 2002/03/13 18:27:36 drahn Exp $ */ +/* $OpenBSD: pmap.c,v 1.61 2002/03/14 03:15:59 millert Exp $ */ /* * Copyright (c) 2001, 2002 Dale Rahn. All rights reserved. @@ -1005,7 +1005,7 @@ pmap_copy_page(paddr_t srcpa, paddr_t dstpa) pmap_kenter_pa(copy_src_page, srcpa, VM_PROT_READ); pmap_kenter_pa(copy_dst_page, dstpa, VM_PROT_READ|VM_PROT_WRITE); - bcopy((void*)copy_src_page, (void*)copy_dst_page, PAGE_SIZE); + bcopy((void *)copy_src_page, (void *)copy_dst_page, PAGE_SIZE); pmap_kremove_pg(copy_src_page); pmap_kremove_pg(copy_dst_page); @@ -2248,17 +2248,17 @@ pmap_user_read(int size, vaddr_t va) int err; if (size == 1) { - err = copyin((void*)va, &read1, 1); + err = copyin((void *)va, &read1, 1); if (err == 0) { db_printf("byte read %x\n", read1); } } else if (size == 2) { - err = copyin((void*)va, &read2, 2); + err = copyin((void *)va, &read2, 2); if (err == 0) { db_printf("short read %x\n", read2); } } else if (size == 4) { - err = copyin((void*)va, &read4, 4); + err = copyin((void *)va, &read4, 4); if (err == 0) { db_printf("int read %x\n", read4); } diff --git a/sys/arch/sparc/dev/amd7930.c b/sys/arch/sparc/dev/amd7930.c index 7acd6f32a43..549eabb3669 100644 --- a/sys/arch/sparc/dev/amd7930.c +++ b/sys/arch/sparc/dev/amd7930.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amd7930.c,v 1.19 2002/03/14 01:26:42 millert Exp $ */ +/* $OpenBSD: amd7930.c,v 1.20 2002/03/14 03:15:59 millert Exp $ */ /* $NetBSD: amd7930.c,v 1.37 1998/03/30 14:23:40 pk Exp $ */ /* @@ -77,9 +77,9 @@ struct amd7930_softc { u_char sc_out_port; /* output port */ /* interfacing with the interrupt handlers */ - void (*sc_rintr)(void*); /* input completion intr handler */ + void (*sc_rintr)(void *); /* input completion intr handler */ void *sc_rarg; /* arg for sc_rintr() */ - void (*sc_pintr)(void*); /* output completion intr handler */ + void (*sc_pintr)(void *); /* output completion intr handler */ void *sc_parg; /* arg for sc_pintr() */ /* sc_au is special in that the hardware interrupt handler uses it */ @@ -210,10 +210,8 @@ int amd7930_query_encoding(void *, struct audio_encoding *); int amd7930_set_params(void *, int, int, struct audio_params *, struct audio_params *); int amd7930_round_blocksize(void *, int); int amd7930_commit_settings(void *); -int amd7930_start_output __P((void *, void *, int, void (*)(void *), - void *)); -int amd7930_start_input __P((void *, void *, int, void (*)(void *), - void *)); +int amd7930_start_output(void *, void *, int, void (*)(void *), void *); +int amd7930_start_input(void *, void *, int, void (*)(void *), void *); int amd7930_halt_output(void *); int amd7930_halt_input(void *); int amd7930_getdev(void *, struct audio_device *); diff --git a/sys/arch/sparc/dev/cgtwo.c b/sys/arch/sparc/dev/cgtwo.c index 4653190d18d..4f3b8d44627 100644 --- a/sys/arch/sparc/dev/cgtwo.c +++ b/sys/arch/sparc/dev/cgtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgtwo.c,v 1.19 2002/03/14 01:26:42 millert Exp $ */ +/* $OpenBSD: cgtwo.c,v 1.20 2002/03/14 03:15:59 millert Exp $ */ /* $NetBSD: cgtwo.c,v 1.22 1997/05/24 20:16:12 pk Exp $ */ /* @@ -305,7 +305,7 @@ cgtwoioctl(dev, cmd, data, flags, p) break; case FBIOSVIDEO: - sc->sc_reg->video_enab = (*(int*)data) & 1; + sc->sc_reg->video_enab = (*(int *)data) & 1; break; default: diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c index a632f2af0b3..f3f4d924ada 100644 --- a/sys/arch/sparc/dev/cs4231.c +++ b/sys/arch/sparc/dev/cs4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231.c,v 1.12 2002/03/14 01:26:42 millert Exp $ */ +/* $OpenBSD: cs4231.c,v 1.13 2002/03/14 03:15:59 millert Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -139,10 +139,10 @@ void * cs4231_alloc(void *, int, size_t, int, int); void cs4231_free(void *, void *, int); size_t cs4231_round_buffersize(void *, int, size_t); int cs4231_get_props(void *); -int cs4231_trigger_output __P((void *, void *, void *, int, - void (*intr)(void *), void *arg, struct audio_params *)); -int cs4231_trigger_input __P((void *, void *, void *, int, - void (*intr)(void *), void *arg, struct audio_params *)); +int cs4231_trigger_output(void *, void *, void *, int, + void (*intr)(void *), void *arg, struct audio_params *); +int cs4231_trigger_input(void *, void *, void *, int, + void (*intr)(void *), void *arg, struct audio_params *); struct audio_hw_if cs4231_sa_hw_if = { cs4231_open, diff --git a/sys/arch/sparc/dev/cs4231var.h b/sys/arch/sparc/dev/cs4231var.h index e1b0799d714..b6542ca7fbd 100644 --- a/sys/arch/sparc/dev/cs4231var.h +++ b/sys/arch/sparc/dev/cs4231var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4231var.h,v 1.5 2002/01/11 16:28:43 jason Exp $ */ +/* $OpenBSD: cs4231var.h,v 1.6 2002/03/14 03:15:59 millert Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -61,9 +61,9 @@ struct cs4231_softc { int sc_open; /* already open? */ int sc_locked; /* locked? */ - void (*sc_rintr)(void*); /* input completion intr handler */ + void (*sc_rintr)(void *); /* input completion intr handler */ void * sc_rarg; /* arg for sc_rintr() */ - void (*sc_pintr)(void*); /* output completion intr handler */ + void (*sc_pintr)(void *); /* output completion intr handler */ void * sc_parg; /* arg for sc_pintr() */ char sc_mute[9]; /* which devs are muted */ diff --git a/sys/arch/sparc/dev/fga.c b/sys/arch/sparc/dev/fga.c index b3c61f22a12..687ec284248 100644 --- a/sys/arch/sparc/dev/fga.c +++ b/sys/arch/sparc/dev/fga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fga.c,v 1.7 2002/03/14 01:26:42 millert Exp $ */ +/* $OpenBSD: fga.c,v 1.8 2002/03/14 03:15:59 millert Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -289,7 +289,7 @@ fga_vmerangemap(sc, vmebase, vmelen, vmecap, sbusslot, sbusoffset, oca) (void *)(sc->sc_range[srange].poffset | sbusoffset); oca->ca_ra.ra_reg[0].rr_iospace = sbusslot; oca->ca_ra.ra_reg[1].rr_iospace = vmecap; - oca->ca_ra.ra_reg[1].rr_paddr = (void*)vmebase; + oca->ca_ra.ra_reg[1].rr_paddr = (void *)vmebase; oca->ca_ra.ra_reg[1].rr_len = vmelen; /* 1. Setup slot select register for this range. */ diff --git a/sys/arch/sparc/dev/kbd.c b/sys/arch/sparc/dev/kbd.c index ed9119878bd..50ac48fd5f2 100644 --- a/sys/arch/sparc/dev/kbd.c +++ b/sys/arch/sparc/dev/kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd.c,v 1.16 2002/03/14 01:26:43 millert Exp $ */ +/* $OpenBSD: kbd.c,v 1.17 2002/03/14 03:15:59 millert Exp $ */ /* $NetBSD: kbd.c,v 1.28 1997/09/13 19:12:18 pk Exp $ */ /* @@ -1066,7 +1066,7 @@ kbdioctl(dev, cmd, data, flag, p) case KIOCSLED: if (k->k_state.kbd_id != KB_SUN4) { /* xxx NYI */ - k->k_state.kbd_leds = *(char*)data; + k->k_state.kbd_leds = *(char *)data; } else { int s; char leds = *(char *)data; diff --git a/sys/arch/sparc/dev/si.c b/sys/arch/sparc/dev/si.c index 3b6a078287a..7826aca1932 100644 --- a/sys/arch/sparc/dev/si.c +++ b/sys/arch/sparc/dev/si.c @@ -1,4 +1,4 @@ -/* $OpenBSD: si.c,v 1.15 2002/03/14 01:26:43 millert Exp $ */ +/* $OpenBSD: si.c,v 1.16 2002/03/14 03:15:59 millert Exp $ */ /* $NetBSD: si.c,v 1.38 1997/08/27 11:24:20 bouyer Exp $ */ /*- @@ -669,7 +669,7 @@ found: dh = &sc->sc_dma[i]; dh->dh_flags = SIDH_BUSY; - dh->dh_addr = (u_char*) addr; + dh->dh_addr = (u_char *) addr; dh->dh_maplen = xlen; dh->dh_dvma = 0; diff --git a/sys/arch/sparc/include/autoconf.h b/sys/arch/sparc/include/autoconf.h index 346059f0ef2..e465c56ae8e 100644 --- a/sys/arch/sparc/include/autoconf.h +++ b/sys/arch/sparc/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.9 2002/03/14 01:26:43 millert Exp $ */ +/* $OpenBSD: autoconf.h,v 1.10 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: autoconf.h,v 1.20 1997/05/24 20:03:03 pk Exp $ */ /* @@ -206,8 +206,7 @@ int sd_crazymap(int); struct device *parsedisk(char *, int, int, dev_t *); /* Establish a mountroot_hook, for benefit of floppy drive, mostly. */ -void mountroot_hook_establish __P((void (*)(struct device *), - struct device *)); +void mountroot_hook_establish(void (*)(struct device *), struct device *); void bootstrap(void); int firstchild(int); diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h index c23c0b32ef3..7400cc6e4c0 100644 --- a/sys/arch/sparc/include/cpu.h +++ b/sys/arch/sparc/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.12 2002/03/14 01:26:43 millert Exp $ */ +/* $OpenBSD: cpu.h,v 1.13 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */ /* @@ -168,7 +168,7 @@ void vmeintr_establish(int vec, int level, struct intrhand *); * interrupt vectors (vectors that are not shared and are handled in the * trap window). Such functions must be written in assembly. */ -void intr_fasttrap __P((int level, void (*vec)(void))); +void intr_fasttrap(int level, void (*vec)(void)); /* auxreg.c */ void led_blink(void *); @@ -212,7 +212,7 @@ void amd7930_trap(void); /* cons.c */ int cnrom(void); /* zs.c */ -void zsconsole __P((struct tty *, int, int, int (**)(struct tty *, int))); +void zsconsole(struct tty *, int, int, int (**)(struct tty *, int)); #ifdef KGDB void zs_kgdb_init(void); #endif @@ -222,7 +222,7 @@ void fb_unblank(void); void cache_flush(caddr_t, u_int); /* kgdb_stub.c */ #ifdef KGDB -void kgdb_attach __P((int (*)(void *), void (*)(void *, int), void *)); +void kgdb_attach(int (*)(void *), void (*)(void *, int), void *); void kgdb_connect(int); void kgdb_panic(void); #endif diff --git a/sys/arch/sparc/include/kbd.h b/sys/arch/sparc/include/kbd.h index b42aea16183..08276c2f5d3 100644 --- a/sys/arch/sparc/include/kbd.h +++ b/sys/arch/sparc/include/kbd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd.h,v 1.8 2002/03/14 01:26:43 millert Exp $ */ +/* $OpenBSD: kbd.h,v 1.9 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: kbd.h,v 1.6 1996/03/31 22:21:35 pk Exp $ */ /* @@ -160,10 +160,8 @@ #define PADENTER 0x711 #ifdef _KERNEL -void kbd_serial __P((struct tty *, - void (*)(struct tty *), void (*)(struct tty *))); -void ms_serial __P((struct tty *, - void (*)(struct tty *), void (*)(struct tty *))); +void kbd_serial(struct tty *, void (*)(struct tty *), void (*)(struct tty *)); +void ms_serial(struct tty *, void (*)(struct tty *), void (*)(struct tty *)); void kbd_rint(int); void ms_rint(int); void kbd_ascii(struct tty *); diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h index abf6e162643..2a03b363b8f 100644 --- a/sys/arch/sparc/include/pmap.h +++ b/sys/arch/sparc/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.31 2002/03/14 01:26:43 millert Exp $ */ +/* $OpenBSD: pmap.h,v 1.32 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: pmap.h,v 1.30 1997/08/04 20:00:47 pk Exp $ */ /* @@ -261,8 +261,7 @@ extern struct pmap kernel_pmap_store; #define PMAP_IOENC(io) (CPU_ISSUN4M ? PMAP_IOENC_SRMMU(io) : PMAP_IOENC_4(io)) int pmap_dumpsize(void); -int pmap_dumpmmu __P((int (*)(dev_t, daddr_t, caddr_t, size_t), - daddr_t)); +int pmap_dumpmmu(int (*)(dev_t, daddr_t, caddr_t, size_t), daddr_t); #define pmap_kernel() (&kernel_pmap_store) #define pmap_resident_count(pmap) pmap_count_ptes(pmap) diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index 39355f676db..444538e8796 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.49 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: autoconf.c,v 1.50 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: autoconf.c,v 1.73 1997/07/29 09:41:53 fair Exp $ */ /* @@ -320,8 +320,8 @@ bootstrap() *((u_int *)ICR_ITR) = 0; #ifdef DEBUG -/* printf("SINTR: mask: 0x%x, pend: 0x%x\n", *(int*)ICR_SI_MASK, - *(int*)ICR_SI_PEND); +/* printf("SINTR: mask: 0x%x, pend: 0x%x\n", *(int *)ICR_SI_MASK, + *(int *)ICR_SI_PEND); */ #endif diff --git a/sys/arch/sparc/sparc/clock.c b/sys/arch/sparc/sparc/clock.c index 380e9c6b3ae..258aa30545a 100644 --- a/sys/arch/sparc/sparc/clock.c +++ b/sys/arch/sparc/sparc/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.16 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: clock.c,v 1.17 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: clock.c,v 1.52 1997/05/24 20:16:05 pk Exp $ */ /* @@ -1043,7 +1043,7 @@ oclk_get_dt(dt) dt++; /* end marker */ do { *dst++ = *src++; - } while (dst < (char*)dt); + } while (dst < (char *)dt); i7->clk_cmd_reg = intersil_command(INTERSIL_CMD_RUN, INTERSIL_CMD_IENABLE); diff --git a/sys/arch/sparc/sparc/db_disasm.c b/sys/arch/sparc/sparc/db_disasm.c index 9d293851406..c370aa41a28 100644 --- a/sys/arch/sparc/sparc/db_disasm.c +++ b/sys/arch/sparc/sparc/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.4 1999/07/09 21:30:02 art Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.5 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: db_disasm.c,v 1.9 1996/03/31 23:45:07 pk Exp $ */ /* @@ -101,18 +101,18 @@ struct sparc_insn { unsigned long int match; - char* name; - char* format; + char *name; + char *format; }; -char* regs[] = { +char *regs[] = { "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", "o0", "o1", "o2", "o3", "o4", "o5", "sp", "o7", "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", "i0", "i1", "i2", "i3", "i4", "i5", "fp", "i7" }; -char* priv_regs[] = { +char *priv_regs[] = { "tpc", "tnpc", "tstate", "tt", "tick", "tba", "pstate", "tl", "pil", "cwp", "cansave", "canrestore", "cleanwin", "otherwin", "wstate", "fq", @@ -120,18 +120,18 @@ char* priv_regs[] = { "", "", "", "", "", "", "", "" }; -char* state_regs[] = { +char *state_regs[] = { "y", "", "ccr", "asi", "tick", "pc", "fprs", "asr", "", "", "", "", "", "", "", "", "illegal", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" }; -char* ccodes[] = { +char *ccodes[] = { "fcc0", "fcc1", "fcc2", "fcc3", "icc", "", "xcc", "" }; -char* prefetch[] = { +char *prefetch[] = { "n_reads", "one_read", "n_writes", "one_write", "page" }; @@ -803,7 +803,7 @@ db_disasm(loc, altfmt) unsigned long int insn, you_lose, bitmask; int matchp; - char* f_ptr, *cp; + char *f_ptr, *cp; you_lose = 0; matchp = 0; diff --git a/sys/arch/sparc/stand/common/promdev.c b/sys/arch/sparc/stand/common/promdev.c index 58735dedb52..641bfb15d3a 100644 --- a/sys/arch/sparc/stand/common/promdev.c +++ b/sys/arch/sparc/stand/common/promdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: promdev.c,v 1.4 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: promdev.c,v 1.5 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: promdev.c,v 1.16 1995/11/14 15:04:01 pk Exp $ */ /* @@ -510,8 +510,8 @@ prom_getether(fd, ea) int len, x; if (sun4_idprom.id_format == 0) { - dst = (char*)&sun4_idprom; - src = (char*)AC_IDPROM; + dst = (char *)&sun4_idprom; + src = (char *)AC_IDPROM; len = sizeof(struct idprom); do { x = lduba(src++, ASI_CONTROL); @@ -780,7 +780,7 @@ found: pte += 1; length -= NBPG; } while (length > 0); - return ((char*)(prom_devmap | (pa & PGOFSET))); + return ((char *)(prom_devmap | (pa & PGOFSET))); } void diff --git a/sys/arch/sparc64/dev/ce4231.c b/sys/arch/sparc64/dev/ce4231.c index 92146092b3e..e9ac05101ce 100644 --- a/sys/arch/sparc64/dev/ce4231.c +++ b/sys/arch/sparc64/dev/ce4231.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ce4231.c,v 1.6 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: ce4231.c,v 1.7 2002/03/14 03:16:00 millert Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -157,10 +157,10 @@ void * ce4231_alloc(void *, int, size_t, int, int); void ce4231_free(void *, void *, int); size_t ce4231_round_buffersize(void *, int, size_t); int ce4231_get_props(void *); -int ce4231_trigger_output __P((void *, void *, void *, int, - void (*intr)(void *), void *arg, struct audio_params *)); -int ce4231_trigger_input __P((void *, void *, void *, int, - void (*intr)(void *), void *arg, struct audio_params *)); +int ce4231_trigger_output(void *, void *, void *, int, + void (*intr)(void *), void *arg, struct audio_params *); +int ce4231_trigger_input(void *, void *, void *, int, + void (*intr)(void *), void *arg, struct audio_params *); struct audio_hw_if ce4231_sa_hw_if = { ce4231_open, diff --git a/sys/arch/sparc64/dev/ce4231var.h b/sys/arch/sparc64/dev/ce4231var.h index 33fb3387dea..b25ffe70769 100644 --- a/sys/arch/sparc64/dev/ce4231var.h +++ b/sys/arch/sparc64/dev/ce4231var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ce4231var.h,v 1.3 2002/01/24 03:06:54 jason Exp $ */ +/* $OpenBSD: ce4231var.h,v 1.4 2002/03/14 03:16:00 millert Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -66,10 +66,10 @@ struct ce4231_softc { int sc_open; /* already open? */ int sc_locked; /* locked? */ - void (*sc_rintr)(void*); /* input completion intr handler */ - void * sc_rarg; /* arg for sc_rintr() */ - void (*sc_pintr)(void*); /* output completion intr handler */ - void * sc_parg; /* arg for sc_pintr() */ + void (*sc_rintr)(void *); /* input completion intr handler */ + void *sc_rarg; /* arg for sc_rintr() */ + void (*sc_pintr)(void *); /* output completion intr handler */ + void *sc_parg; /* arg for sc_pintr() */ char sc_mute[9]; /* which devs are muted */ u_int8_t sc_out_port; /* output port */ diff --git a/sys/arch/sparc64/dev/ebus.c b/sys/arch/sparc64/dev/ebus.c index af8635e6bb7..cc3f022b634 100644 --- a/sys/arch/sparc64/dev/ebus.c +++ b/sys/arch/sparc64/dev/ebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ebus.c,v 1.8 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: ebus.c,v 1.9 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: ebus.c,v 1.24 2001/07/25 03:49:54 eeh Exp $ */ /* @@ -103,8 +103,8 @@ static paddr_t ebus_bus_mmap(bus_space_tag_t, bus_addr_t, off_t, int, int); static int _ebus_bus_map(bus_space_tag_t, bus_type_t, bus_addr_t, bus_size_t, int, vaddr_t, bus_space_handle_t *); -static void *ebus_intr_establish __P((bus_space_tag_t, int, int, int, - int (*)(void *), void *)); +static void *ebus_intr_establish(bus_space_tag_t, int, int, int, + int (*)(void *), void *); static int ebus_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *, bus_size_t, struct proc *, int); diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index 0a808fe4f06..7a7e1020851 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.4 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: pcons.c,v 1.5 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -376,7 +376,7 @@ pcons_cnpollc(dev, on) void pcons_dopoll(void); void pcons_dopoll() { - pcons_poll((void*)pcons_cd.cd_devs[0]); + pcons_poll((void *)pcons_cd.cd_devs[0]); } /* XXXXXXXX --- more cnmagic stuff. */ diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c index cebe0169b01..cc6307b70b0 100644 --- a/sys/arch/sparc64/dev/psycho.c +++ b/sys/arch/sparc64/dev/psycho.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psycho.c,v 1.15 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: psycho.c,v 1.16 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */ /* @@ -96,8 +96,8 @@ void psycho_iommu_init(struct psycho_softc *, int); paddr_t psycho_bus_mmap(bus_space_tag_t, bus_addr_t, off_t, int, int); int _psycho_bus_map(bus_space_tag_t, bus_type_t, bus_addr_t, bus_size_t, int, vaddr_t, bus_space_handle_t *); -void *psycho_intr_establish __P((bus_space_tag_t, int, int, int, - int (*)(void *), void *)); +void *psycho_intr_establish(bus_space_tag_t, int, int, int, + int (*)(void *), void *); int psycho_dmamap_load(bus_dma_tag_t, bus_dmamap_t, void *, bus_size_t, struct proc *, int); diff --git a/sys/arch/sparc64/dev/sbus.c b/sys/arch/sparc64/dev/sbus.c index 3f8c463110c..b5da982b638 100644 --- a/sys/arch/sparc64/dev/sbus.c +++ b/sys/arch/sparc64/dev/sbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbus.c,v 1.12 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: sbus.c,v 1.13 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */ /*- @@ -155,13 +155,13 @@ static int _sbus_bus_map( int, /*flags*/ vaddr_t, /*preferred virtual address */ bus_space_handle_t *); -static void *sbus_intr_establish __P(( +static void *sbus_intr_establish( bus_space_tag_t, int, /*Sbus interrupt level*/ int, /*`device class' priority*/ int, /*flags*/ int (*)(void *), /*handler*/ - void *)); /*handler arg*/ + void *); /*handler arg*/ /* autoconfiguration driver */ diff --git a/sys/arch/sparc64/dev/upavar.h b/sys/arch/sparc64/dev/upavar.h index 697c57b48b8..67c51ce0873 100644 --- a/sys/arch/sparc64/dev/upavar.h +++ b/sys/arch/sparc64/dev/upavar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: upavar.h,v 1.3 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: upavar.h,v 1.4 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: upavar.h,v 1.2 2000/01/14 14:33:31 pk Exp $ */ /*- @@ -118,7 +118,7 @@ struct upa_attach_args { int ua_node; /* PROM handle */ struct upa_reg *ua_reg; /* "reg" properties */ int ua_nreg; - void* *ua_address; /* "address" properties */ + void * *ua_address; /* "address" properties */ int ua_naddress; int *ua_interrupts; /* "interrupts" properties */ int ua_ninterrupts; diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c index 3a6e84321b0..cb6130d2c00 100644 --- a/sys/arch/sparc64/dev/vgafb.c +++ b/sys/arch/sparc64/dev/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.6 2002/03/14 01:26:44 millert Exp $ */ +/* $OpenBSD: vgafb.c,v 1.7 2002/03/14 03:16:00 millert Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -102,8 +102,8 @@ int vgafb_ioctl(void *, u_long, caddr_t, int, struct proc *); int vgafb_alloc_screen(void *, const struct wsscreen_descr *, void **, int *, int *, long *); void vgafb_free_screen(void *, void *); -int vgafb_show_screen __P((void *, void *, int, - void (*cb)(void *, int, int), void *)); +int vgafb_show_screen(void *, void *, int, + void (*cb)(void *, int, int), void *); paddr_t vgafb_mmap(void *, off_t, int); int vgafb_is_console(int); int vgafb_getcmap(struct vgafb_softc *, struct wsdisplay_cmap *); diff --git a/sys/arch/sparc64/include/autoconf.h b/sys/arch/sparc64/include/autoconf.h index cdf099f0dfc..079ea8a154a 100644 --- a/sys/arch/sparc64/include/autoconf.h +++ b/sys/arch/sparc64/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.6 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: autoconf.h,v 1.7 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: autoconf.h,v 1.10 2001/07/24 19:32:11 eeh Exp $ */ /*- @@ -168,8 +168,7 @@ int sd_crazymap(int); struct device *parsedisk(char *, int, int, dev_t *); /* Establish a mountroot_hook, for benefit of floppy drive, mostly. */ -void mountroot_hook_establish __P((void (*)(struct device *), - struct device *)); +void mountroot_hook_establish(void (*)(struct device *), struct device *); void bootstrap(int); int firstchild(int); diff --git a/sys/arch/sparc64/include/bus.h b/sys/arch/sparc64/include/bus.h index 692c7a43217..3e42fad0917 100644 --- a/sys/arch/sparc64/include/bus.h +++ b/sys/arch/sparc64/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.11 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: bus.h,v 1.12 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: bus.h,v 1.31 2001/09/21 15:30:41 wiz Exp $ */ /*- @@ -157,9 +157,9 @@ struct sparc_bus_space_tag { paddr_t (*sparc_bus_mmap)(bus_space_tag_t, bus_addr_t, off_t, int, int); - void *(*sparc_intr_establish) __P((bus_space_tag_t, + void *(*sparc_intr_establish)(bus_space_tag_t, int, int, int, - int (*)(void *), void *)); + int (*)(void *), void *); }; @@ -233,14 +233,14 @@ static paddr_t bus_space_mmap( off_t, /*offset*/ int, /*prot*/ int); /*flags*/ -static void *bus_intr_establish __P(( +static void *bus_intr_establish( bus_space_tag_t, int, /*bus-specific intr*/ int, /*device class level, see machine/intr.h*/ int, /*flags*/ int (*)(void *), /*handler*/ - void *)); /*handler arg*/ + void *); /*handler arg*/ /* This macro finds the first "upstream" implementation of method `f' */ @@ -383,7 +383,7 @@ void * bus_space_vaddr(bus_space_tag_t space, bus_space_handle_t handle); * the temporary virtual address * the passed `arg' argument */ -int bus_space_probe __P(( +int bus_space_probe( bus_space_tag_t, bus_type_t, bus_addr_t, @@ -391,7 +391,7 @@ int bus_space_probe __P(( size_t, /* offset */ int, /* flags */ int (*)(void *, void *), /* callback function */ - void *)); /* callback arg */ + void *); /* callback arg */ /* diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index 5f4d634f812..c9df2248502 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.8 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: cpu.h,v 1.9 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -299,7 +299,7 @@ void amd7930_trap(void); /* cons.c */ int cnrom(void); /* zs.c */ -void zsconsole __P((struct tty *, int, int, void (**)(struct tty *, int))); +void zsconsole(struct tty *, int, int, void (**)(struct tty *, int)); #ifdef KGDB void zs_kgdb_init(void); #endif @@ -307,7 +307,7 @@ void zs_kgdb_init(void); void fb_unblank(void); /* kgdb_stub.c */ #ifdef KGDB -void kgdb_attach __P((int (*)(void *), void (*)(void *, int), void *)); +void kgdb_attach(int (*)(void *), void (*)(void *, int), void *); void kgdb_connect(int); void kgdb_panic(void); #endif diff --git a/sys/arch/sparc64/include/intr.h b/sys/arch/sparc64/include/intr.h index 4ea39b564b4..70dccdd829c 100644 --- a/sys/arch/sparc64/include/intr.h +++ b/sys/arch/sparc64/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.2 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: intr.h,v 1.3 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: intr.h,v 1.8 2001/01/14 23:50:30 thorpej Exp $ */ /*- @@ -55,7 +55,7 @@ #define IPL_HIGH PIL_HIGH /* everything */ void * -softintr_establish __P((int level, void (*fun)(void *), void *arg)); +softintr_establish(int level, void (*fun)(void *), void *arg); void softintr_disestablish(void *cookie); diff --git a/sys/arch/sparc64/include/openfirm.h b/sys/arch/sparc64/include/openfirm.h index 20be67c12c0..7d27aaff1ad 100644 --- a/sys/arch/sparc64/include/openfirm.h +++ b/sys/arch/sparc64/include/openfirm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: openfirm.h,v 1.2 2001/08/19 05:15:40 art Exp $ */ +/* $OpenBSD: openfirm.h,v 1.3 2002/03/14 03:16:00 millert Exp $ */ /* $NetBSD: openfirm.h,v 1.8 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -47,9 +47,9 @@ typedef u_int64_t cell_t; #define ADR2CELL(x) (cell_t)(u_int)(int)(x) #endif -int OF_test (char* service); -int OF_test_method (int handle, char* method); -int OF_getproplen (int handle, char* prop); +int OF_test (char *service); +int OF_test_method (int handle, char *method); +int OF_getproplen (int handle, char *prop); int OF_stdin (void); int OF_stdout (void); diff --git a/sys/arch/sparc64/include/pmap.h b/sys/arch/sparc64/include/pmap.h index 250d5ffe4ea..81681aff364 100644 --- a/sys/arch/sparc64/include/pmap.h +++ b/sys/arch/sparc64/include/pmap.h @@ -172,8 +172,7 @@ void pmap_bootstrap(u_long kernelstart, u_long kernelend, u_int numctx); /* SPARC specific? */ void pmap_redzone(void); int pmap_dumpsize(void); -int pmap_dumpmmu __P((int (*)(dev_t, daddr_t, caddr_t, size_t), - daddr_t)); +int pmap_dumpmmu(int (*)(dev_t, daddr_t, caddr_t, size_t), daddr_t); int pmap_pa_exists(paddr_t); struct proc; void switchexit(struct proc *); diff --git a/sys/arch/sparc64/include/psl.h b/sys/arch/sparc64/include/psl.h index 392e4d4a738..520087e4af7 100644 --- a/sys/arch/sparc64/include/psl.h +++ b/sys/arch/sparc64/include/psl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: psl.h,v 1.3 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: psl.h,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: psl.h,v 1.20 2001/04/13 23:30:05 thorpej Exp $ */ /* @@ -310,8 +310,8 @@ void prom_printf(const char *fmt, ...); extern int printspl; #define SPLPRINT(x) if(printspl) { int i=10000000; prom_printf x ; while(i--); } #define SPL(name, newpil) \ -static __inline int name##X(const char*, int); \ -static __inline int name##X(const char* file, int line) \ +static __inline int name##X(const char *, int); \ +static __inline int name##X(const char *file, int line) \ { \ int oldpil; \ __asm __volatile("rdpr %%pil,%0" : "=r" (oldpil)); \ @@ -321,8 +321,8 @@ static __inline int name##X(const char* file, int line) \ } /* A non-priority-decreasing version of SPL */ #define SPLHOLD(name, newpil) \ -static __inline int name##X(const char*, int); \ -static __inline int name##X(const char* file, int line) \ +static __inline int name##X(const char *, int); \ +static __inline int name##X(const char * file, int line) \ { \ int oldpil; \ __asm __volatile("rdpr %%pil,%0" : "=r" (oldpil)); \ @@ -446,10 +446,10 @@ static __inline void splx(newpil) #define splhigh() splhighX(__FILE__, __LINE__) #define splx(x) splxX((x),__FILE__, __LINE__) -static __inline void splxX(int, const char*, int); +static __inline void splxX(int, const char *, int); static __inline void splxX(newpil, file, line) int newpil, line; - const char* file; + const char *file; #else static __inline void splx(newpil) int newpil; diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index bc13591ce01..9cde49498cc 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.20 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: autoconf.c,v 1.21 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -320,7 +320,7 @@ bootpath_build() register long chosen; char buf[128]; - bzero((void*)bootpath, sizeof(bootpath)); + bzero((void *)bootpath, sizeof(bootpath)); bp = bootpath; /* @@ -1166,7 +1166,7 @@ extern struct sparc_bus_space_tag mainbus_space_tag; ma.ma_upaid = portid; if (getprop(node, "reg", sizeof(*ma.ma_reg), - &ma.ma_nreg, (void**)&ma.ma_reg) != 0) + &ma.ma_nreg, (void **)&ma.ma_reg) != 0) continue; #ifdef DEBUG if (autoconf_debug & ACDB_PROBE) { @@ -1179,7 +1179,7 @@ extern struct sparc_bus_space_tag mainbus_space_tag; } #endif rv = getprop(node, "interrupts", sizeof(*ma.ma_interrupts), - &ma.ma_ninterrupts, (void**)&ma.ma_interrupts); + &ma.ma_ninterrupts, (void **)&ma.ma_interrupts); if (rv != 0 && rv != ENOENT) { free(ma.ma_reg, M_DEVBUF); continue; @@ -1194,7 +1194,7 @@ extern struct sparc_bus_space_tag mainbus_space_tag; } #endif rv = getprop(node, "address", sizeof(*ma.ma_address), - &ma.ma_naddress, (void**)&ma.ma_address); + &ma.ma_naddress, (void **)&ma.ma_address); if (rv != 0 && rv != ENOENT) { free(ma.ma_reg, M_DEVBUF); if (ma.ma_ninterrupts) diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index 846a14798ff..9ffd293bf1b 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.9 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: clock.c,v 1.10 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */ /* @@ -570,10 +570,10 @@ timerattach(parent, self, aux) /* Install the appropriate interrupt vector here */ level10.ih_number = ma->ma_interrupts[0]; - level10.ih_clr = (void*)&timerreg_4u.t_clrintr[0]; + level10.ih_clr = (void *)&timerreg_4u.t_clrintr[0]; intr_establish(10, &level10); level14.ih_number = ma->ma_interrupts[1]; - level14.ih_clr = (void*)&timerreg_4u.t_clrintr[1]; + level14.ih_clr = (void *)&timerreg_4u.t_clrintr[1]; intr_establish(14, &level14); printf(" irq vectors %lx and %lx", diff --git a/sys/arch/sparc64/sparc64/db_disasm.c b/sys/arch/sparc64/sparc64/db_disasm.c index 9a34b5c05f5..36efa77f892 100644 --- a/sys/arch/sparc64/sparc64/db_disasm.c +++ b/sys/arch/sparc64/sparc64/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.2 2001/08/20 20:23:53 jason Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.3 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: db_disasm.c,v 1.9 2000/08/16 11:29:42 pk Exp $ */ /* @@ -114,18 +114,18 @@ struct sparc_insn { unsigned int match; - char* name; - char* format; + char *name; + char *format; }; -char* regs[] = { +char *regs[] = { "g0", "g1", "g2", "g3", "g4", "g5", "g6", "g7", "o0", "o1", "o2", "o3", "o4", "o5", "sp", "o7", "l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", "i0", "i1", "i2", "i3", "i4", "i5", "fp", "i7" }; -char* priv_regs[] = { +char *priv_regs[] = { "tpc", "tnpc", "tstate", "tt", "tick", "tba", "pstate", "tl", "pil", "cwp", "cansave", "canrestore", "cleanwin", "otherwin", "wstate", "fq", @@ -133,18 +133,18 @@ char* priv_regs[] = { "", "", "", "", "", "", "", "ver" }; -char* state_regs[] = { +char *state_regs[] = { "y", "", "ccr", "asi", "tick", "pc", "fprs", "asr", "", "", "", "", "", "", "", "", "pcr", "pic", "dcr", "gsr", "set_softint", "clr_softint", "softint", "tick_cmpr", "", "", "", "", "", "", "", "", "" }; -char* ccodes[] = { +char *ccodes[] = { "fcc0", "fcc1", "fcc2", "fcc3", "icc", "", "xcc", "" }; -char* prefetch[] = { +char *prefetch[] = { "n_reads", "one_read", "n_writes", "one_write", "page" }; @@ -882,7 +882,7 @@ db_disasm(loc, altfmt) unsigned int insn, you_lose, bitmask; int matchp; - char* f_ptr, *cp; + char *f_ptr, *cp; you_lose = 0; matchp = 0; diff --git a/sys/arch/sparc64/sparc64/db_interface.c b/sys/arch/sparc64/sparc64/db_interface.c index 70fbefc27b8..c52139d140c 100644 --- a/sys/arch/sparc64/sparc64/db_interface.c +++ b/sys/arch/sparc64/sparc64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.5 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: db_interface.c,v 1.6 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: db_interface.c,v 1.61 2001/07/31 06:55:47 eeh Exp $ */ /* @@ -970,7 +970,7 @@ db_uvmhistdump(addr, have_addr, count, modif) } #if NESP_SBUS -extern void db_esp(db_expr_t, int, db_expr_t, char*); +extern void db_esp(db_expr_t, int, db_expr_t, char *); #endif struct db_command db_machine_command_table[] = { diff --git a/sys/arch/sparc64/sparc64/db_trace.c b/sys/arch/sparc64/sparc64/db_trace.c index 44843390163..fa08ff82701 100644 --- a/sys/arch/sparc64/sparc64/db_trace.c +++ b/sys/arch/sparc64/sparc64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.3 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: db_trace.c,v 1.23 2001/07/10 06:06:16 eeh Exp $ */ /* @@ -526,7 +526,7 @@ db_dump_ts(addr, have_addr, count, modif) for (i=0; i<tl; i++) { printf("%d tt=%lx tstate=%lx tpc=%p tnpc=%p\n", i+1, (long)ts[i].tt, (u_long)ts[i].tstate, - (void*)(u_long)ts[i].tpc, (void*)(u_long)ts[i].tnpc); + (void *)(u_long)ts[i].tpc, (void *)(u_long)ts[i].tnpc); } } diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 9dac1573b39..7d572de7590 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.38 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.39 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -1097,7 +1097,7 @@ stackdump() printf("Call traceback:\n"); while (fp && ((u_long)fp >> PGSHIFT) == ((u_long)sfp >> PGSHIFT)) { if( ((long)fp) & 1 ) { - fp64 = (struct frame64*)(((char*)fp)+BIAS); + fp64 = (struct frame64*)(((char *)fp)+BIAS); /* 64-bit frame */ printf("%llx(%llx, %llx, %llx, %llx, %llx, %llx, %llx) fp = %llx\n", (unsigned long long)fp64->fr_pc, @@ -1709,9 +1709,9 @@ static int sparc_bus_subregion(bus_space_tag_t, bus_space_handle_t, bus_size_t, bus_size_t, bus_space_handle_t *); static paddr_t sparc_bus_mmap(bus_space_tag_t, bus_addr_t, off_t, int, int); -static void *sparc_mainbus_intr_establish __P((bus_space_tag_t, int, int, +static void *sparc_mainbus_intr_establish(bus_space_tag_t, int, int, int, int (*)(void *), - void *)); + void *); static void sparc_bus_barrier(bus_space_tag_t, bus_space_handle_t, bus_size_t, bus_size_t, int); static int sparc_bus_alloc(bus_space_tag_t, bus_addr_t, bus_addr_t, diff --git a/sys/arch/sparc64/sparc64/openfirm.c b/sys/arch/sparc64/sparc64/openfirm.c index 1880ed64dd8..fd42ac2baa7 100644 --- a/sys/arch/sparc64/sparc64/openfirm.c +++ b/sys/arch/sparc64/sparc64/openfirm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openfirm.c,v 1.6 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: openfirm.c,v 1.7 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: openfirm.c,v 1.13 2001/06/21 00:08:02 eeh Exp $ */ /* @@ -353,7 +353,7 @@ OF_call_method(method, ihandle, nargs, nreturns, va_alist) args.method = ADR2CELL(method); args.ihandle = HDL2CELL(ihandle); va_start(ap, nreturns); - for (ip = (long*)(args.args_n_results + (n = nargs)); --n >= 0;) + for (ip = (long *)(args.args_n_results + (n = nargs)); --n >= 0;) *--ip = va_arg(ap, unsigned long); if (openfirmware(&args) == -1) { va_end(ap); @@ -363,7 +363,7 @@ OF_call_method(method, ihandle, nargs, nreturns, va_alist) va_end(ap); return args.args_n_results[nargs]; } - for (ip = (long*)(args.args_n_results + nargs + (n = args.nreturns)); --n > 0;) + for (ip = (long *)(args.args_n_results + nargs + (n = args.nreturns)); --n > 0;) *va_arg(ap, unsigned long *) = *--ip; va_end(ap); return 0; @@ -399,7 +399,7 @@ OF_call_method_1(method, ihandle, nargs, va_alist) args.method = ADR2CELL(method); args.ihandle = HDL2CELL(ihandle); va_start(ap, nargs); - for (ip = (long*)(args.args_n_results + (n = nargs)); --n >= 0;) + for (ip = (long *)(args.args_n_results + (n = nargs)); --n >= 0;) *--ip = va_arg(ap, unsigned long); va_end(ap); if (openfirmware(&args) == -1) { @@ -457,7 +457,7 @@ OF_close(handle) int OF_test(service) - char* service; + char *service; { struct { cell_t name; @@ -479,7 +479,7 @@ OF_test(service) int OF_test_method(service, method) int service; - char* method; + char *method; { struct { cell_t name; @@ -699,8 +699,8 @@ void args.nreturns = 1; args.newfunc = ADR2CELL(newfunc); if (openfirmware(&args) == -1) - return (void*)(long)-1; - return (void*)(long)args.oldfunc; + return (void *)(long)-1; + return (void *)(long)args.oldfunc; } void diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index 9a52101867d..f39bcfdaa27 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.11 2002/03/14 01:26:45 millert Exp $ */ +/* $OpenBSD: pmap.c,v 1.12 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */ #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ #define HWREF @@ -880,7 +880,7 @@ remap_data: */ sz = OF_getproplen(vmemh, "translations"); valloc(prom_map, struct prom_map, sz); - if (OF_getprop(vmemh, "translations", (void*)prom_map, sz) <= 0) { + if (OF_getprop(vmemh, "translations", (void *)prom_map, sz) <= 0) { prom_printf("no translations installed?"); OF_exit(); } @@ -960,7 +960,7 @@ remap_data: /* * Re-fetch translations -- they've certainly changed. */ - if (OF_getprop(vmemh, "translations", (void*)prom_map, sz) <= + if (OF_getprop(vmemh, "translations", (void *)prom_map, sz) <= 0) { prom_printf("no translations installed?"); OF_exit(); @@ -1095,7 +1095,7 @@ remap_data: bzero(tsb, TSBSIZE); BDPRINTF(PDB_BOOT1, ("firstaddr after TSB=%lx\r\n", (u_long)firstaddr)); - BDPRINTF(PDB_BOOT1, ("TSB allocated at %p size %08x\r\n", (void*)tsb, + BDPRINTF(PDB_BOOT1, ("TSB allocated at %p size %08x\r\n", (void *)tsb, (int)TSBSIZE)); first_phys_addr = mem->start; @@ -1668,7 +1668,7 @@ pmap_pinit(pm) pm->pm_segs = (int64_t *)(u_long)pm->pm_physaddr; if (!pm->pm_physaddr) panic("pmap_pinit"); #ifdef NOTDEF_DEBUG - printf("pmap_pinit: segs %p == %p\n", pm->pm_segs, (void*)page->phys_addr); + printf("pmap_pinit: segs %p == %p\n", pm->pm_segs, (void *)page->phys_addr); #endif ctx_alloc(pm); } @@ -3873,7 +3873,7 @@ pmap_testout() /* Allocate a page */ va = (vaddr_t)(vmmap - NBPG); ASSERT(va != NULL); - loc = (int*)va; + loc = (int *)va; pg = vm_page_alloc1(); pa = (paddr_t)VM_PAGE_TO_PHYS(pg); diff --git a/sys/arch/sparc64/stand/ofwboot/Locore.c b/sys/arch/sparc64/stand/ofwboot/Locore.c index 8bb954407a3..ba9d8626e8d 100644 --- a/sys/arch/sparc64/stand/ofwboot/Locore.c +++ b/sys/arch/sparc64/stand/ofwboot/Locore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: Locore.c,v 1.3 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: Locore.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: Locore.c,v 1.1 2000/08/20 14:58:36 mrg Exp $ */ /* @@ -814,15 +814,15 @@ OF_claim(virt, size, align) */ paddr_t paddr; - void* newvirt = NULL; + void * newvirt = NULL; if (virt == NULL) { - if ((virt = (void*)OF_alloc_virt(size, align)) == (void*)-1) { + if ((virt = (void *)OF_alloc_virt(size, align)) == (void *)-1) { printf("OF_alloc_virt(%d,%d) failed w/%x\n", size, align, virt); return (void *)-1; } } else { - if ((newvirt = (void*)OF_claim_virt((vaddr_t)virt, size)) == (void*)-1) { + if ((newvirt = (void *)OF_claim_virt((vaddr_t)virt, size)) == (void *)-1) { printf("OF_claim_virt(%x,%d) failed w/%x\n", virt, size, newvirt); return (void *)-1; } diff --git a/sys/arch/sparc64/stand/ofwboot/alloc.c b/sys/arch/sparc64/stand/ofwboot/alloc.c index 39d5258ada4..7fd70b4e2a0 100644 --- a/sys/arch/sparc64/stand/ofwboot/alloc.c +++ b/sys/arch/sparc64/stand/ofwboot/alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: alloc.c,v 1.2 2001/08/20 19:55:33 jason Exp $ */ +/* $OpenBSD: alloc.c,v 1.3 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: alloc.c,v 1.1 2000/08/20 14:58:37 mrg Exp $ */ /* @@ -178,7 +178,7 @@ free(ptr, size) void *ptr; unsigned size; /* only for consistenct check */ { - register struct ml *a = (struct ml *)((char*)ptr - OVERHEAD); + register struct ml *a = (struct ml *)((char *)ptr - OVERHEAD); #ifdef ALLOC_TRACE printf("free(%lx, %u) (origsize %u)\n", (u_long)ptr, size, a->size); diff --git a/sys/arch/sparc64/stand/ofwboot/boot.c b/sys/arch/sparc64/stand/ofwboot/boot.c index 58ea26c65da..f5d983f41bb 100644 --- a/sys/arch/sparc64/stand/ofwboot/boot.c +++ b/sys/arch/sparc64/stand/ofwboot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.5 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: boot.c,v 1.6 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: boot.c,v 1.3 2001/05/31 08:55:19 mrg Exp $ */ /* * Copyright (c) 1997, 1999 Eduardo E. Horvath. All rights reserved. @@ -166,7 +166,7 @@ chain(pentry, args, ssym, esym) int l, machine_tag; long newargs[3]; - entry = (void*)(long)pentry; + entry = (void *)(long)pentry; freeall(); /* @@ -442,7 +442,7 @@ elf32_exec(fd, elf, entryp, ssymp, esymp) if (phdr.p_filesz < phdr.p_memsz) { printf("+%lu@0x%lx", phdr.p_memsz - phdr.p_filesz, (u_long)(phdr.p_vaddr + phdr.p_filesz)); - bzero((void*)phdr.p_vaddr + phdr.p_filesz, + bzero((void *)phdr.p_vaddr + phdr.p_filesz, phdr.p_memsz - phdr.p_filesz); } first = 0; diff --git a/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c b/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c index 252b48e1cec..d8ceeb14e1f 100644 --- a/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c +++ b/sys/arch/sparc64/stand/ofwboot/elfXX_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elfXX_exec.c,v 1.3 2001/09/20 23:26:02 jason Exp $ */ +/* $OpenBSD: elfXX_exec.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: elfXX_exec.c,v 1.2 2001/08/15 20:08:15 eeh Exp $ */ /* @@ -49,7 +49,7 @@ #define MEG (1024*1024) #if 0 -int CAT3(elf,ELFSIZE,_exec) __P((int, CAT3(Elf,ELFSIZE,_Ehdr) *, u_int64_t *, void **, void **)); +int CAT3(elf,ELFSIZE,_exec)(int, CAT3(Elf,ELFSIZE,_Ehdr) *, u_int64_t *, void **, void **); #endif #if defined(ELFSIZE) && (ELFSIZE == 32) #define ELF_ALIGN(x) (((x)+3)&(~3)) @@ -123,7 +123,7 @@ CAT3(elf, ELFSIZE, _exec)(fd, elf, entryp, ssymp, esymp) if (phdr.p_filesz < phdr.p_memsz) { printf("+%lu@0x%lx", (u_long)phdr.p_memsz - phdr.p_filesz, (u_long)(phdr.p_vaddr + phdr.p_filesz)); - bzero((void*)(long)phdr.p_vaddr + phdr.p_filesz, + bzero((void *)(long)phdr.p_vaddr + phdr.p_filesz, (size_t)phdr.p_memsz - phdr.p_filesz); } first = 0; diff --git a/sys/arch/sparc64/stand/ofwboot/openfirm.h b/sys/arch/sparc64/stand/ofwboot/openfirm.h index 5bdb18b3980..47e41197470 100644 --- a/sys/arch/sparc64/stand/ofwboot/openfirm.h +++ b/sys/arch/sparc64/stand/ofwboot/openfirm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: openfirm.h,v 1.3 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: openfirm.h,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: openfirm.h,v 1.1 2000/08/20 14:58:42 mrg Exp $ */ /* @@ -55,5 +55,5 @@ int OF_seek(u_int handle, u_int64_t pos); void *OF_claim(void *virt, u_int size, u_int align); void OF_release(void *virt, u_int size); int OF_milliseconds(void); -void OF_chain __P((void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen)); +void OF_chain(void *addr, u_int size, void (*entry)(), void *parm, u_int parmlen); diff --git a/sys/arch/sparc64/stand/ofwboot/srt0.s b/sys/arch/sparc64/stand/ofwboot/srt0.s index 72e28ed3c5d..8ffa5aa900b 100644 --- a/sys/arch/sparc64/stand/ofwboot/srt0.s +++ b/sys/arch/sparc64/stand/ofwboot/srt0.s @@ -1,4 +1,4 @@ -/* $OpenBSD: srt0.s,v 1.2 2001/08/20 19:55:33 jason Exp $ */ +/* $OpenBSD: srt0.s,v 1.3 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: srt0.s,v 1.1 2000/08/20 14:58:42 mrg Exp $ */ /* @@ -118,7 +118,7 @@ _start: nop /* - * void syncicache(void* start, int size) + * void syncicache(void *start, int size) * * I$ flush. Really simple. Just flush over the whole range. */ diff --git a/sys/arch/sun3/dev/cg2.c b/sys/arch/sun3/dev/cg2.c index 17aca349433..5422ac1fe7e 100644 --- a/sys/arch/sun3/dev/cg2.c +++ b/sys/arch/sun3/dev/cg2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cg2.c,v 1.10 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: cg2.c,v 1.11 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: cg2.c,v 1.7 1996/10/13 03:47:26 christos Exp $ */ /* @@ -118,7 +118,7 @@ static struct fbdriver cg2fbdriver = { cg2getcmap, cg2putcmap }; -static int cg2intr(void*); +static int cg2intr(void *); /* * Match a cg2. @@ -166,7 +166,7 @@ cg2attach(parent, self, args) sc->sc_ctlreg = (struct cg2fb *) bus_mapin(ca->ca_bustype, ca->ca_paddr + CTLREGS_OFF, CTLREGS_SIZE); - isr_add_vectored(cg2intr, (void*)sc, + isr_add_vectored(cg2intr, (void *)sc, ca->ca_intpri, ca->ca_intvec); /* diff --git a/sys/arch/sun3/dev/idprom.c b/sys/arch/sun3/dev/idprom.c index f0939215305..894f76e52f8 100644 --- a/sys/arch/sun3/dev/idprom.c +++ b/sys/arch/sun3/dev/idprom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: idprom.c,v 1.6 1997/01/16 04:03:46 kstailey Exp $ */ +/* $OpenBSD: idprom.c,v 1.7 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: idprom.c,v 1.13 1996/11/20 18:56:50 gwr Exp $ */ /*- @@ -115,8 +115,8 @@ idprom_init() } hid; idp = &identity_prom; - dst = (char*)idp; - src = (char*)IDPROM_BASE; + dst = (char *)idp; + src = (char *)IDPROM_BASE; len = IDPROM_SIZE; xorsum = 0; /* calculated as xor of data */ diff --git a/sys/arch/sun3/dev/kd.c b/sys/arch/sun3/dev/kd.c index d7c19c50d14..48add94c541 100644 --- a/sys/arch/sun3/dev/kd.c +++ b/sys/arch/sun3/dev/kd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kd.c,v 1.10 2001/08/20 19:34:40 miod Exp $ */ +/* $OpenBSD: kd.c,v 1.11 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: kd.c,v 1.21 1996/11/20 18:56:55 gwr Exp $ */ /*- @@ -276,7 +276,7 @@ kdstop(tp, flag) return (0); } -static void kd_later(void*); +static void kd_later(void *); static void kd_putfb(struct tty *); static struct timeout kd_timeout; diff --git a/sys/arch/sun3/dev/si.c b/sys/arch/sun3/dev/si.c index 8e7b3796708..e1a8defb238 100644 --- a/sys/arch/sun3/dev/si.c +++ b/sys/arch/sun3/dev/si.c @@ -1,4 +1,4 @@ -/* $OpenBSD: si.c,v 1.15 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: si.c,v 1.16 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: si.c,v 1.31 1996/11/20 18:56:59 gwr Exp $ */ /*- @@ -382,7 +382,7 @@ found: dh = &sc->sc_dma[i]; dh->dh_flags = SIDH_BUSY; - dh->dh_addr = (u_char*) addr; + dh->dh_addr = (u_char *) addr; dh->dh_maplen = xlen; dh->dh_dvma = 0; diff --git a/sys/arch/sun3/include/machdep.h b/sys/arch/sun3/include/machdep.h index da3f744ed42..a3f33ee2576 100644 --- a/sys/arch/sun3/include/machdep.h +++ b/sys/arch/sun3/include/machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.h,v 1.17 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: machdep.h,v 1.18 2002/03/14 03:16:01 millert Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -96,7 +96,7 @@ int fpu_emulate(struct frame *, struct fpframe *); /* Backward compatibility... */ #define getsr _getsr -void** getvbr(void); +void **getvbr(void); vm_offset_t high_segment_alloc(int npages); diff --git a/sys/arch/sun3/include/mon.h b/sys/arch/sun3/include/mon.h index bb1dcc2f69f..1164cca88cd 100644 --- a/sys/arch/sun3/include/mon.h +++ b/sys/arch/sun3/include/mon.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mon.h,v 1.6 2002/03/14 01:26:46 millert Exp $ */ +/* $OpenBSD: mon.h,v 1.7 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: mon.h,v 1.19 1996/11/20 18:57:12 gwr Exp $ */ /*- @@ -134,7 +134,7 @@ typedef struct { */ int (*getKey)(void); /* Get next key if one exists */ - int (*initGetKey)(void*); /* Initialize get key */ + int (*initGetKey)(void *); /* Initialize get key */ u_int *translation; /* Kbd translation selector (see keyboard.h in sun monitor code) */ @@ -197,8 +197,8 @@ typedef struct { * Non-maskable interrupt (nmi) information */ - int (*nmiAddr)(void*); /* Addr for level 7 vector */ - int (*abortEntry)(void*); /* Entry for keyboard abort */ + int (*nmiAddr)(void *); /* Addr for level 7 vector */ + int (*abortEntry)(void *); /* Entry for keyboard abort */ int *nmiClock; /* Counts up in msec */ /* @@ -221,10 +221,10 @@ typedef struct { long *resetAddr; /* where to jump on a reset */ long *resetMap; /* pgmap entry for resetaddr */ /* Really struct pgmapent * */ - int (*exitToMon)(void); /* Exit from user program */ + int (*exitToMon)(void); /* Exit from user program */ u_char **memorybitmap; /* V1: &{0 or &bits} */ - void (*setcxsegmap)(int,int,int); /* Set seg in any context */ - void (**vector_cmd)(int, char*); /* V2: Handler for 'v' cmd */ + void (*setcxsegmap)(int,int,int); /* Set seg in any context */ + void (**vector_cmd)(int, char *); /* V2: Handler for 'v' cmd */ int dummy1z; int dummy2z; int dummy3z; diff --git a/sys/arch/sun3/stand/bootxx/bootxx.c b/sys/arch/sun3/stand/bootxx/bootxx.c index aaf27d402bb..2b4730d2181 100644 --- a/sys/arch/sun3/stand/bootxx/bootxx.c +++ b/sys/arch/sun3/stand/bootxx/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.2 2001/07/04 08:33:44 niklas Exp $ */ +/* $OpenBSD: bootxx.c,v 1.3 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: bootxx.c,v 1.5 1995/10/13 21:44:57 gwr Exp $ */ /* @@ -83,7 +83,7 @@ main() exit(); } - addr = (char*)LOADADDR; + addr = (char *)LOADADDR; error = copyboot(&f, addr); f.f_dev->dv_close(&f); if (!error) { diff --git a/sys/arch/sun3/stand/libsa/devopen.c b/sys/arch/sun3/stand/libsa/devopen.c index 8be8dacb97b..902bf855548 100644 --- a/sys/arch/sun3/stand/libsa/devopen.c +++ b/sys/arch/sun3/stand/libsa/devopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devopen.c,v 1.3 2001/07/04 08:33:48 niklas Exp $ */ +/* $OpenBSD: devopen.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ #include <sys/param.h> @@ -25,7 +25,7 @@ devopen(f, fname, file) struct devsw *dp; int error; - *file = (char*)fname; + *file = (char *)fname; dp = &devsw[0]; f->f_dev = dp; error = (*dp->dv_open)(f, prom_bootdev); diff --git a/sys/arch/sun3/stand/libsa/dvma.c b/sys/arch/sun3/stand/libsa/dvma.c index f92b3b17c17..0117a2ecaea 100644 --- a/sys/arch/sun3/stand/libsa/dvma.c +++ b/sys/arch/sun3/stand/libsa/dvma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvma.c,v 1.5 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: dvma.c,v 1.6 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: dvma.c,v 1.6 1996/01/31 17:20:39 gwr Exp $ */ /* @@ -111,7 +111,7 @@ dvma_alloc(int len) { len = m68k_round_page(len); dvma_end -= len; - return((char*)dvma_end); + return((char *)dvma_end); } void diff --git a/sys/arch/sun3/stand/libsa/exec_sun.c b/sys/arch/sun3/stand/libsa/exec_sun.c index ca7e72f51b5..bbefb121854 100644 --- a/sys/arch/sun3/stand/libsa/exec_sun.c +++ b/sys/arch/sun3/stand/libsa/exec_sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_sun.c,v 1.4 2001/07/04 08:33:49 niklas Exp $ */ +/* $OpenBSD: exec_sun.c,v 1.5 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: exec_sun.c,v 1.6 1996/06/20 03:59:41 gwr Exp $ */ /*- @@ -128,9 +128,9 @@ exec_sun(file, loadaddr) *cp++ = 0; --cc; } - ip = (int*)cp; + ip = (int *)cp; cp += cc; - while ((char*)ip < cp) + while ((char *)ip < cp) *ip++ = 0; /* @@ -138,7 +138,7 @@ exec_sun(file, loadaddr) * (Always set the symtab size word.) */ *ip++ = x.a_syms; - cp = (char*) ip; + cp = (char *) ip; if (x.a_syms > 0) { @@ -149,7 +149,7 @@ exec_sun(file, loadaddr) if (read(io, cp, cc) != cc) goto shread; cp += x.a_syms; - ip = (int*)cp; /* points to strtab length */ + ip = (int *)cp; /* points to strtab length */ cp += sizeof(int); /* String table. Length word includes itself. */ diff --git a/sys/arch/sun3/stand/libsa/netif_sun.c b/sys/arch/sun3/stand/libsa/netif_sun.c index 7b447035acf..27735093c00 100644 --- a/sys/arch/sun3/stand/libsa/netif_sun.c +++ b/sys/arch/sun3/stand/libsa/netif_sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netif_sun.c,v 1.6 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: netif_sun.c,v 1.7 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: netif_sun.c,v 1.4 1996/01/29 23:41:07 gwr Exp $ */ /* @@ -92,8 +92,8 @@ sun3_getether(ea) int len, x; if (sun3_idprom.idp_format == 0) { - dst = (char*)&sun3_idprom; - src = (char*)IDPROM_BASE; + dst = (char *)&sun3_idprom; + src = (char *)IDPROM_BASE; len = IDPROM_SIZE; do { x = get_control_byte(src++); diff --git a/sys/arch/sun3/stand/libsa/promdev.c b/sys/arch/sun3/stand/libsa/promdev.c index e585af44173..934e8546caa 100644 --- a/sys/arch/sun3/stand/libsa/promdev.c +++ b/sys/arch/sun3/stand/libsa/promdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: promdev.c,v 1.7 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: promdev.c,v 1.8 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: promdev.c,v 1.7 1996/01/29 23:41:10 gwr Exp $ */ /* @@ -107,7 +107,7 @@ prom_iopen(si) size = dip->d_dmabytes + NBPG; addr = (int) dvma_alloc(size); addr = m68k_round_page(addr); - si->si_dmaaddr = (char*) addr; + si->si_dmaaddr = (char *) addr; #ifdef DEBUG_PROM if (debug) printf("prom_iopen: dmaaddr=0x%x\n", si->si_dmaaddr); @@ -222,5 +222,5 @@ found: pte += 1; length -= NBPG; } while (length > 0); - return ((char*)(prom_devmap | (pa & PGOFSET))); + return ((char *)(prom_devmap | (pa & PGOFSET))); } diff --git a/sys/arch/sun3/stand/netboot/dev_net.c b/sys/arch/sun3/stand/netboot/dev_net.c index 9925ba93b2c..5ec01f5d031 100644 --- a/sys/arch/sun3/stand/netboot/dev_net.c +++ b/sys/arch/sun3/stand/netboot/dev_net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_net.c,v 1.4 2001/07/04 08:33:54 niklas Exp $ */ +/* $OpenBSD: dev_net.c,v 1.5 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: dev_net.c,v 1.4 1996/01/29 23:54:15 gwr Exp $ */ /* @@ -105,7 +105,7 @@ net_open(struct open_file *f, ...) int error = 0; va_start(ap, f); - devname = va_arg(ap, char*); + devname = va_arg(ap, char *); va_end(ap); #ifdef NETIF_DEBUG diff --git a/sys/arch/sun3/stand/tapeboot/dev_tape.c b/sys/arch/sun3/stand/tapeboot/dev_tape.c index 54a8f24c428..962ebba7418 100644 --- a/sys/arch/sun3/stand/tapeboot/dev_tape.c +++ b/sys/arch/sun3/stand/tapeboot/dev_tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_tape.c,v 1.3 2001/07/04 08:33:56 niklas Exp $ */ +/* $OpenBSD: dev_tape.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: dev_tape.c,v 1.2 1995/10/17 22:58:20 gwr Exp $ */ /* @@ -70,7 +70,7 @@ devopen(f, fname, file) struct devsw *dp; int error; - *file = (char*)fname; + *file = (char *)fname; dp = &devsw[0]; f->f_dev = dp; diff --git a/sys/arch/sun3/sun3/autoconf.c b/sys/arch/sun3/sun3/autoconf.c index 98316a8e94d..74424336be8 100644 --- a/sys/arch/sun3/sun3/autoconf.c +++ b/sys/arch/sun3/sun3/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.21 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: autoconf.c,v 1.22 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: autoconf.c,v 1.37 1996/11/20 18:57:22 gwr Exp $ */ /*- @@ -291,7 +291,7 @@ bus_mapin(bustype, paddr, sz) #endif pmap_update(pmap_kernel()); - return ((char*)retval); + return ((char *)retval); } /* from hp300: badaddr() */ diff --git a/sys/arch/sun3/sun3/clock.c b/sys/arch/sun3/sun3/clock.c index 85bf6ff7586..952da438fb8 100644 --- a/sys/arch/sun3/sun3/clock.c +++ b/sys/arch/sun3/sun3/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.10 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: clock.c,v 1.11 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: clock.c,v 1.31 1996/10/30 00:24:42 gwr Exp $ */ /* @@ -425,7 +425,7 @@ clk_get_dt(dt) dt++; /* end marker */ do { *dst++ = *src++; - } while (dst < (char*)dt); + } while (dst < (char *)dt); intersil_clock->clk_cmd_reg = intersil_command(INTERSIL_CMD_RUN, INTERSIL_CMD_IENABLE); @@ -605,9 +605,9 @@ clkdebug() long gmt; long *lp; - bzero((char*)&dt, sizeof(dt)); + bzero((char *)&dt, sizeof(dt)); clk_get_dt(&dt); - lp = (long*)&dt; + lp = (long *)&dt; printf("clkdebug: dt=[%x,%x]\n", lp[0], lp[1]); dt_to_gmt(&dt, &gmt); diff --git a/sys/arch/sun3/sun3/db_memrw.c b/sys/arch/sun3/sun3/db_memrw.c index 886af8e81f3..9f3006760b2 100644 --- a/sys/arch/sun3/sun3/db_memrw.c +++ b/sys/arch/sun3/sun3/db_memrw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_memrw.c,v 1.10 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: db_memrw.c,v 1.11 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: db_memrw.c,v 1.13 1996/11/20 18:57:28 gwr Exp $ */ /*- @@ -80,15 +80,15 @@ db_read_bytes(addr, size, data) register size_t size; register char *data; { - register char *src = (char*)addr; + register char *src = (char *)addr; if (size == 4) { - *((int*)data) = *((int*)src); + *((int *)data) = *((int *)src); return; } if (size == 2) { - *((short*)data) = *((short*)src); + *((short *)data) = *((short *)src); return; } @@ -116,7 +116,7 @@ db_write_text(addr, size, data) if (size <= 0) return; - dst = (char*)addr; + dst = (char *)addr; pgva = trunc_page((long)dst); goto firstpage; @@ -188,12 +188,12 @@ db_write_bytes(addr, size, data) } if (size == 4) { - *((int*)dst) = *((int*)data); + *((int *)dst) = *((int *)data); return; } if (size == 2) { - *((short*)dst) = *((short*)data); + *((short *)dst) = *((short *)data); return; } diff --git a/sys/arch/sun3/sun3/isr.c b/sys/arch/sun3/sun3/isr.c index e651d78ae2d..062e6ddc527 100644 --- a/sys/arch/sun3/sun3/isr.c +++ b/sys/arch/sun3/sun3/isr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isr.c,v 1.16 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: isr.c,v 1.17 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: isr.c,v 1.25 1996/11/20 18:57:32 gwr Exp $ */ /*- @@ -69,7 +69,7 @@ struct isr { int isr_ipl; }; -void set_vector_entry __P((int, void (*handler)(void))); +void set_vector_entry(int, void (*handler)(void)); unsigned int get_vector_entry(int); void isr_autovec(int); diff --git a/sys/arch/sun3/sun3/machdep.c b/sys/arch/sun3/sun3/machdep.c index 0932cdd5cb9..68eef454519 100644 --- a/sys/arch/sun3/sun3/machdep.c +++ b/sys/arch/sun3/sun3/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.52 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: machdep.c,v 1.53 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: machdep.c,v 1.77 1996/10/13 03:47:51 christos Exp $ */ /* @@ -770,7 +770,7 @@ dumpsys() do { if ((todo & 0xf) == 0) printf("\r%4d", todo); - vaddr = (char*)(paddr + KERNBASE); + vaddr = (char *)(paddr + KERNBASE); error = (*dsw->d_dump)(dumpdev, blkno, vaddr, NBPG); if (error) goto fail; @@ -780,7 +780,7 @@ dumpsys() } while (--chunk > 0); /* Do the second chunk (avail_start <= PA < dumpsize) */ - vaddr = (char*)vmmap; /* Borrow /dev/mem VA */ + vaddr = (char *)vmmap; /* Borrow /dev/mem VA */ do { if ((todo & 0xf) == 0) printf("\r%4d", todo); diff --git a/sys/arch/sun3/sun3/sun3_startup.c b/sys/arch/sun3/sun3/sun3_startup.c index 7975deb4a13..7009a8af0bd 100644 --- a/sys/arch/sun3/sun3/sun3_startup.c +++ b/sys/arch/sun3/sun3/sun3_startup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sun3_startup.c,v 1.21 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: sun3_startup.c,v 1.22 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: sun3_startup.c,v 1.55 1996/11/20 18:57:38 gwr Exp $ */ /*- @@ -331,7 +331,7 @@ sun3_save_symtab(kehp) /* Check the symtab length word. */ endp = end; - symsz = (int*)endp; + symsz = (int *)endp; if (kehp->a_syms != *symsz) { errdesc = "a_syms"; goto err; @@ -340,7 +340,7 @@ sun3_save_symtab(kehp) endp += *symsz; /* past nlist array */ /* Check the string table length. */ - strsz = (int*)endp; + strsz = (int *)endp; if ((*strsz < 4) || (*strsz > 0x80000)) { errdesc = "strsize"; goto err; diff --git a/sys/arch/sun3/sun3/vector.c b/sys/arch/sun3/sun3/vector.c index d100b60c432..c228451aec5 100644 --- a/sys/arch/sun3/sun3/vector.c +++ b/sys/arch/sun3/sun3/vector.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vector.c,v 1.8 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: vector.c,v 1.9 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: vector.c,v 1.15 1996/11/20 18:57:40 gwr Exp $ */ /*- @@ -60,8 +60,8 @@ #define fpunfl fpfault void (*vector_table[NVECTORS])(void) = { - (void*)0xfffe000, /* 0: NOT USED (reset SP) */ - (void*)0xfef0000, /* 1: NOT USED (reset PC) */ + (void *)0xfffe000, /* 0: NOT USED (reset SP) */ + (void *)0xfef0000, /* 1: NOT USED (reset PC) */ buserr, /* 2: bus error */ addrerr, /* 3: address error */ illinst, /* 4: illegal instruction */ diff --git a/sys/arch/sun3/sun3/vm_machdep.c b/sys/arch/sun3/sun3/vm_machdep.c index b9ae489831a..a51681625f3 100644 --- a/sys/arch/sun3/sun3/vm_machdep.c +++ b/sys/arch/sun3/sun3/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.22 2001/12/08 02:24:07 art Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.23 2002/03/14 03:16:01 millert Exp $ */ /* $NetBSD: vm_machdep.c,v 1.35 1996/04/26 18:38:06 gwr Exp $ */ /* @@ -119,7 +119,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg) * Leave one word unused at the end of the kernel stack * so the system stack pointer stays within its stack. */ - p2tf = (struct trapframe *)((char*)p2->p_addr + USPACE-4) - 1; + p2tf = (struct trapframe *)((char *)p2->p_addr + USPACE-4) - 1; p2->p_md.md_regs = (int *)p2tf; bcopy(p1->p_md.md_regs, p2tf, sizeof(*p2tf)); diff --git a/sys/arch/vax/bi/bi.c b/sys/arch/vax/bi/bi.c index 8b8c55bca44..11b69b12087 100644 --- a/sys/arch/vax/bi/bi.c +++ b/sys/arch/vax/bi/bi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bi.c,v 1.3 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: bi.c,v 1.4 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: bi.c,v 1.4 1996/10/13 03:34:44 christos Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -52,7 +52,7 @@ #include <arch/vax/bi/bivar.h> static int bi_match(struct device *, void *, void *); -static void bi_attach(struct device *, struct device *, void*); +static void bi_attach(struct device *, struct device *, void *); static int bi_print(void *, const char *); struct cfdriver bi_cd = { diff --git a/sys/arch/vax/bi/bivar.h b/sys/arch/vax/bi/bivar.h index 53af17b53d4..a44ace650fb 100644 --- a/sys/arch/vax/bi/bivar.h +++ b/sys/arch/vax/bi/bivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bivar.h,v 1.4 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: bivar.h,v 1.5 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: bivar.h,v 1.5 2000/03/26 11:45:04 ragge Exp $ */ /* * Copyright (c) 1996, 1999 Ludd, University of Lule}, Sweden. @@ -71,4 +71,4 @@ struct bi_list { /* Prototype */ void bi_attach(struct bi_softc *); -void bi_intr_establish __P((void *, int, void (*)(void *), void *)); +void bi_intr_establish(void *, int, void (*)(void *), void *); diff --git a/sys/arch/vax/boot/boot/if_qe.c b/sys/arch/vax/boot/boot/if_qe.c index 247f82a4728..a1c1c248907 100644 --- a/sys/arch/vax/boot/boot/if_qe.c +++ b/sys/arch/vax/boot/boot/if_qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_qe.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: if_qe.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: if_qe.c,v 1.2 1999/06/30 18:19:26 ragge Exp $ */ /* @@ -218,7 +218,7 @@ retry: if (len == 0) goto retry; - bcopy((void*)sc->qein,pkt,len); + bcopy((void *)sc->qein,pkt,len); end: diff --git a/sys/arch/vax/boot/boot/mfm.c b/sys/arch/vax/boot/boot/mfm.c index 33fbbbc3065..2e22bda7139 100644 --- a/sys/arch/vax/boot/boot/mfm.c +++ b/sys/arch/vax/boot/boot/mfm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfm.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: mfm.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: mfm.c,v 1.2 1997/03/15 13:04:28 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -78,9 +78,9 @@ char io_buf[DEV_BSIZE]; * These should probably be somewhere else, but ka410 is the only * one with mfm disks anyway... */ -volatile unsigned char *ka410_intreq = (void*)0x2008000f; -volatile unsigned char *ka410_intclr = (void*)0x2008000f; -volatile unsigned char *ka410_intmsk = (void*)0x2008000c; +volatile unsigned char *ka410_intreq = (void *)0x2008000f; +volatile unsigned char *ka410_intclr = (void *)0x2008000f; +volatile unsigned char *ka410_intmsk = (void *)0x2008000c; static volatile struct hdc9224_DKCreg *dkc = (void *) 0x200c0000; static volatile struct hdc9224_UDCreg sreg; /* input */ diff --git a/sys/arch/vax/boot/boot/ra.c b/sys/arch/vax/boot/boot/ra.c index 96be3fcfc00..a0eeaa4cfb0 100644 --- a/sys/arch/vax/boot/boot/ra.c +++ b/sys/arch/vax/boot/boot/ra.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ra.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: ra.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ra.c,v 1.4 1999/08/07 11:19:04 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. @@ -111,7 +111,7 @@ raopen(f, adapt, ctlr, unit, part) nisse[494] = PG_V | (((u_int)&uda) >> 9); nisse[495] = nisse[494] + 1; udacsr = (int)uioaddr[adapt] + udaaddr[ctlr]; - ubauda = (void*)0x3dc00 + (((u_int)(&uda))&0x1ff); + ubauda = (void *)0x3dc00 + (((u_int)(&uda))&0x1ff); johan = (((u_int)ubauda) & 0xffff) + 8; johan2 = 3; ra->ra_ip = (short *)udacsr; diff --git a/sys/arch/vax/boot/boot/rom.c b/sys/arch/vax/boot/boot/rom.c index 21494022eb1..2d3f0c3a6b5 100644 --- a/sys/arch/vax/boot/boot/rom.c +++ b/sys/arch/vax/boot/boot/rom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rom.c,v 1.2 2000/10/04 04:48:54 bjc Exp $ */ +/* $OpenBSD: rom.c,v 1.3 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: rom.c,v 1.1 1996/08/02 11:22:21 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -73,7 +73,7 @@ romopen(f, adapt, ctlr, unit, part) int i,err; bootregs[11] = XXRPB; - bqo = (void*)rpb->iovec; + bqo = (void *)rpb->iovec; if (rpb->unit > 0 && (rpb->unit % 100) == 0) { printf ("changing rpb->unit from %d ", rpb->unit); @@ -93,7 +93,7 @@ romopen(f, adapt, ctlr, unit, part) msg = getdisklabel(io_buf+LABELOFFSET, lp); if (msg) printf("getdisklabel: %s\n",msg); - f->f_devdata = (void*)rsc; + f->f_devdata = (void *)rsc; return(0); } diff --git a/sys/arch/vax/boot/boot/tmscp.c b/sys/arch/vax/boot/boot/tmscp.c index 5dbd5aef582..ec0f185a01c 100644 --- a/sys/arch/vax/boot/boot/tmscp.c +++ b/sys/arch/vax/boot/boot/tmscp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmscp.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: tmscp.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: tmscp.c,v 1.3 1999/06/30 18:19:26 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. @@ -95,11 +95,11 @@ tmscpopen(f, adapt, ctlr, unit, part) ra->udaddr=uioaddr[adapt]+tmsaddr; ra->ubaddr=(int)ubaaddr[adapt]; ra->unit=unit; - udacsr=(void*)ra->udaddr; + udacsr=(void *)ra->udaddr; nisse=((u_int *)ubaaddr[adapt]) + 512; nisse[494]=PG_V|(((u_int)&uda)>>9); nisse[495]=nisse[494]+1; - ubauda=(void*)0x3dc00+(((u_int)(&uda))&0x1ff); + ubauda=(void *)0x3dc00+(((u_int)(&uda))&0x1ff); /* * Init of this tmscp ctlr. @@ -165,7 +165,7 @@ tmscpstrategy(ra, func, dblk, size, buf, rsize) u_int size, *rsize; { u_int i,j,pfnum, mapnr, nsize, bn, cn, sn, tn; - volatile struct udadevice *udadev=(void*)ra->udaddr; + volatile struct udadevice *udadev=(void *)ra->udaddr; volatile u_int *ptmapp = (u_int *)ra->ubaddr + 512; volatile int hej; diff --git a/sys/arch/vax/boot/xxboot/bootxx.c b/sys/arch/vax/boot/xxboot/bootxx.c index e91679f2a9e..30007379ea1 100644 --- a/sys/arch/vax/boot/xxboot/bootxx.c +++ b/sys/arch/vax/boot/xxboot/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.3 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: bootxx.c,v 1.4 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: bootxx.c,v 1.2 1999/10/23 14:40:38 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -118,11 +118,11 @@ Xmain() /* * now relocate rpb/bqo (which are used by ROM-routines) */ - rpb = (void*)XXRPB; - bcopy ((void*)bootregs[11], rpb, 512); + rpb = (void *)XXRPB; + bcopy ((void *)bootregs[11], rpb, 512); rpb->rpb_base = rpb; - bqo = (void*)(512+(int)rpb); - bcopy ((void*)rpb->iovec, bqo, rpb->iovecsz); + bqo = (void *)(512+(int)rpb); + bcopy ((void *)rpb->iovec, bqo, rpb->iovecsz); rpb->iovec = (int)bqo; bootregs[11] = (int)rpb; bootdev = rpb->devtyp; @@ -431,7 +431,7 @@ hpread(block, size, buf) char *buf; { volatile struct mba_regs *mr = (void *) bootregs[1]; - volatile struct hp_drv *hd = (void*)&mr->mba_md[bootregs[3]]; + volatile struct hp_drv *hd = (void *)&mr->mba_md[bootregs[3]]; struct disklabel *dp = &lp; u_int pfnum, nsize, mapnr, bn, cn, sn, tn; @@ -457,7 +457,7 @@ hpread(block, size, buf) } extern char end[]; -static char *top = (char*)end; +static char *top = (char *)end; void * alloc(size) diff --git a/sys/arch/vax/dec/lk201.h b/sys/arch/vax/dec/lk201.h index edec87498b9..a496cb17b45 100644 --- a/sys/arch/vax/dec/lk201.h +++ b/sys/arch/vax/dec/lk201.h @@ -1,4 +1,4 @@ -/* $OpenBSD: lk201.h,v 1.2 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: lk201.h,v 1.3 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: lk201.h,v 1.7 1999/03/19 18:34:01 ad Exp $ */ @@ -142,5 +142,5 @@ #ifdef _KERNEL extern int LKgetc(dev_t dev); -extern void lkdivert __P ((int (*getc_fn)(dev_t dev), dev_t dev)); +extern void lkdivert(int (*getc_fn)(dev_t dev), dev_t dev); #endif diff --git a/sys/arch/vax/stand/boot/if_qe.c b/sys/arch/vax/stand/boot/if_qe.c index 247f82a4728..a1c1c248907 100644 --- a/sys/arch/vax/stand/boot/if_qe.c +++ b/sys/arch/vax/stand/boot/if_qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_qe.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: if_qe.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: if_qe.c,v 1.2 1999/06/30 18:19:26 ragge Exp $ */ /* @@ -218,7 +218,7 @@ retry: if (len == 0) goto retry; - bcopy((void*)sc->qein,pkt,len); + bcopy((void *)sc->qein,pkt,len); end: diff --git a/sys/arch/vax/stand/boot/mfm.c b/sys/arch/vax/stand/boot/mfm.c index 33fbbbc3065..2e22bda7139 100644 --- a/sys/arch/vax/stand/boot/mfm.c +++ b/sys/arch/vax/stand/boot/mfm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfm.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: mfm.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: mfm.c,v 1.2 1997/03/15 13:04:28 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -78,9 +78,9 @@ char io_buf[DEV_BSIZE]; * These should probably be somewhere else, but ka410 is the only * one with mfm disks anyway... */ -volatile unsigned char *ka410_intreq = (void*)0x2008000f; -volatile unsigned char *ka410_intclr = (void*)0x2008000f; -volatile unsigned char *ka410_intmsk = (void*)0x2008000c; +volatile unsigned char *ka410_intreq = (void *)0x2008000f; +volatile unsigned char *ka410_intclr = (void *)0x2008000f; +volatile unsigned char *ka410_intmsk = (void *)0x2008000c; static volatile struct hdc9224_DKCreg *dkc = (void *) 0x200c0000; static volatile struct hdc9224_UDCreg sreg; /* input */ diff --git a/sys/arch/vax/stand/boot/ra.c b/sys/arch/vax/stand/boot/ra.c index 96be3fcfc00..a0eeaa4cfb0 100644 --- a/sys/arch/vax/stand/boot/ra.c +++ b/sys/arch/vax/stand/boot/ra.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ra.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: ra.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ra.c,v 1.4 1999/08/07 11:19:04 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. @@ -111,7 +111,7 @@ raopen(f, adapt, ctlr, unit, part) nisse[494] = PG_V | (((u_int)&uda) >> 9); nisse[495] = nisse[494] + 1; udacsr = (int)uioaddr[adapt] + udaaddr[ctlr]; - ubauda = (void*)0x3dc00 + (((u_int)(&uda))&0x1ff); + ubauda = (void *)0x3dc00 + (((u_int)(&uda))&0x1ff); johan = (((u_int)ubauda) & 0xffff) + 8; johan2 = 3; ra->ra_ip = (short *)udacsr; diff --git a/sys/arch/vax/stand/boot/rom.c b/sys/arch/vax/stand/boot/rom.c index 21494022eb1..2d3f0c3a6b5 100644 --- a/sys/arch/vax/stand/boot/rom.c +++ b/sys/arch/vax/stand/boot/rom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rom.c,v 1.2 2000/10/04 04:48:54 bjc Exp $ */ +/* $OpenBSD: rom.c,v 1.3 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: rom.c,v 1.1 1996/08/02 11:22:21 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -73,7 +73,7 @@ romopen(f, adapt, ctlr, unit, part) int i,err; bootregs[11] = XXRPB; - bqo = (void*)rpb->iovec; + bqo = (void *)rpb->iovec; if (rpb->unit > 0 && (rpb->unit % 100) == 0) { printf ("changing rpb->unit from %d ", rpb->unit); @@ -93,7 +93,7 @@ romopen(f, adapt, ctlr, unit, part) msg = getdisklabel(io_buf+LABELOFFSET, lp); if (msg) printf("getdisklabel: %s\n",msg); - f->f_devdata = (void*)rsc; + f->f_devdata = (void *)rsc; return(0); } diff --git a/sys/arch/vax/stand/boot/tmscp.c b/sys/arch/vax/stand/boot/tmscp.c index 5dbd5aef582..ec0f185a01c 100644 --- a/sys/arch/vax/stand/boot/tmscp.c +++ b/sys/arch/vax/stand/boot/tmscp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmscp.c,v 1.1 2000/04/27 02:26:25 bjc Exp $ */ +/* $OpenBSD: tmscp.c,v 1.2 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: tmscp.c,v 1.3 1999/06/30 18:19:26 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. @@ -95,11 +95,11 @@ tmscpopen(f, adapt, ctlr, unit, part) ra->udaddr=uioaddr[adapt]+tmsaddr; ra->ubaddr=(int)ubaaddr[adapt]; ra->unit=unit; - udacsr=(void*)ra->udaddr; + udacsr=(void *)ra->udaddr; nisse=((u_int *)ubaaddr[adapt]) + 512; nisse[494]=PG_V|(((u_int)&uda)>>9); nisse[495]=nisse[494]+1; - ubauda=(void*)0x3dc00+(((u_int)(&uda))&0x1ff); + ubauda=(void *)0x3dc00+(((u_int)(&uda))&0x1ff); /* * Init of this tmscp ctlr. @@ -165,7 +165,7 @@ tmscpstrategy(ra, func, dblk, size, buf, rsize) u_int size, *rsize; { u_int i,j,pfnum, mapnr, nsize, bn, cn, sn, tn; - volatile struct udadevice *udadev=(void*)ra->udaddr; + volatile struct udadevice *udadev=(void *)ra->udaddr; volatile u_int *ptmapp = (u_int *)ra->ubaddr + 512; volatile int hej; diff --git a/sys/arch/vax/stand/xxboot/bootxx.c b/sys/arch/vax/stand/xxboot/bootxx.c index e91679f2a9e..30007379ea1 100644 --- a/sys/arch/vax/stand/xxboot/bootxx.c +++ b/sys/arch/vax/stand/xxboot/bootxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootxx.c,v 1.3 2002/03/14 01:26:47 millert Exp $ */ +/* $OpenBSD: bootxx.c,v 1.4 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: bootxx.c,v 1.2 1999/10/23 14:40:38 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -118,11 +118,11 @@ Xmain() /* * now relocate rpb/bqo (which are used by ROM-routines) */ - rpb = (void*)XXRPB; - bcopy ((void*)bootregs[11], rpb, 512); + rpb = (void *)XXRPB; + bcopy ((void *)bootregs[11], rpb, 512); rpb->rpb_base = rpb; - bqo = (void*)(512+(int)rpb); - bcopy ((void*)rpb->iovec, bqo, rpb->iovecsz); + bqo = (void *)(512+(int)rpb); + bcopy ((void *)rpb->iovec, bqo, rpb->iovecsz); rpb->iovec = (int)bqo; bootregs[11] = (int)rpb; bootdev = rpb->devtyp; @@ -431,7 +431,7 @@ hpread(block, size, buf) char *buf; { volatile struct mba_regs *mr = (void *) bootregs[1]; - volatile struct hp_drv *hd = (void*)&mr->mba_md[bootregs[3]]; + volatile struct hp_drv *hd = (void *)&mr->mba_md[bootregs[3]]; struct disklabel *dp = &lp; u_int pfnum, nsize, mapnr, bn, cn, sn, tn; @@ -457,7 +457,7 @@ hpread(block, size, buf) } extern char end[]; -static char *top = (char*)end; +static char *top = (char *)end; void * alloc(size) diff --git a/sys/arch/vax/uba/ts.c b/sys/arch/vax/uba/ts.c index 97db187bf21..6da9ce768b9 100644 --- a/sys/arch/vax/uba/ts.c +++ b/sys/arch/vax/uba/ts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts.c,v 1.7 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: ts.c,v 1.8 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ts.c,v 1.11 1997/01/11 11:34:43 ragge Exp $ */ /*- @@ -286,7 +286,7 @@ tsexec (ctlr, cmd) register struct tscmd *tscmdp = &ts[ctlr].cmd; register long tscmdma = (long)&sc->sc_ts->cmd; /* mapped address */ volatile struct tsdevice *tsreg = ts[ctlr].reg; - volatile char *dbx = ((char*)tsreg) + 3; + volatile char *dbx = ((char *)tsreg) + 3; volatile short sr; sc->sc_cmdf |= TS_CF_ACK | TS_CF_IE; @@ -319,7 +319,7 @@ tsexec (ctlr, cmd) sc->sc_dev.dv_xname, sr); return (-1); } - dbx = ((char*)tsreg) + 3; /* dbx is located at the fourth byte */ + dbx = ((char *)tsreg) + 3; /* dbx is located at the fourth byte */ *dbx = (tscmdma >> 18) & 0x0F; /* load bits 18-21 into dbx */ /* possible race-condition with ATTN !!! */ diff --git a/sys/arch/vax/vax/cmi.c b/sys/arch/vax/vax/cmi.c index ec7182df536..8cb34ca1e57 100644 --- a/sys/arch/vax/vax/cmi.c +++ b/sys/arch/vax/vax/cmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmi.c,v 1.2 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: cmi.c,v 1.3 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: cmi.c,v 1.2 1999/08/14 11:30:48 ragge Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. @@ -42,7 +42,7 @@ static int cmi_print(void *, const char *); static int cmi_match(struct device *, struct cfdata *, void *); -static void cmi_attach(struct device *, struct device *, void*); +static void cmi_attach(struct device *, struct device *, void *); struct cfattach cmi_ca = { sizeof(struct device), cmi_match, cmi_attach @@ -93,7 +93,7 @@ cmi_attach(parent, self, aux) vax_unmap_physmem((vaddr_t)sa.nexaddr, NEXPAGES); } else { sa.type = NEX_MEM16; - config_found(self, (void*)&sa, cmi_print); + config_found(self, (void *)&sa, cmi_print); } } @@ -107,7 +107,7 @@ cmi_attach(parent, self, aux) vax_unmap_physmem((vaddr_t)sa.nexaddr, NEXPAGES); } else { sa.type = NEX_MBA; - config_found(self, (void*)&sa, cmi_print); + config_found(self, (void *)&sa, cmi_print); } } @@ -118,7 +118,7 @@ cmi_attach(parent, self, aux) sa.nexaddr = (struct nexus *)vax_map_physmem(NEX750 + sizeof(struct nexus) * sa.nexnum, NEXPAGES); sa.type = NEX_UBA0; - config_found(self, (void*)&sa, cmi_print); + config_found(self, (void *)&sa, cmi_print); sa.nexnum = 9; sa.nexaddr = (struct nexus *)vax_map_physmem(NEX750 + @@ -127,5 +127,5 @@ cmi_attach(parent, self, aux) if (badaddr((caddr_t)sa.nexaddr, 4)) vax_unmap_physmem((vaddr_t)sa.nexaddr, NEXPAGES); else - config_found(self, (void*)&sa, cmi_print); + config_found(self, (void *)&sa, cmi_print); } diff --git a/sys/arch/vax/vax/dzcons.c b/sys/arch/vax/vax/dzcons.c index bb97d781b16..9deb9be3e37 100644 --- a/sys/arch/vax/vax/dzcons.c +++ b/sys/arch/vax/vax/dzcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dzcons.c,v 1.4 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: dzcons.c,v 1.5 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: dzcons.c,v 1.5 1997/03/22 12:51:01 ragge Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -51,9 +51,9 @@ #include <machine/ka410.h> #include <machine/../vax/gencons.h> -volatile unsigned char *ka410_intreq = (void*)KA410_INTREQ; -volatile unsigned char *ka410_intclr = (void*)KA410_INTCLR; -volatile unsigned char *ka410_intmsk = (void*)KA410_INTMSK; +volatile unsigned char *ka410_intreq = (void *)KA410_INTREQ; +volatile unsigned char *ka410_intclr = (void *)KA410_INTCLR; +volatile unsigned char *ka410_intmsk = (void *)KA410_INTMSK; @@ -69,7 +69,7 @@ static volatile struct {/* base address of DZ-controller: 0x200A0000 */ REG(lpr1); /* 14 Lpr0: */ REG(lpr2); /* 18 Lpr0: */ REG(lpr3); /* 1C Lpr0: */ -} *dz = (void*)0x200A0000; +} *dz = (void *)0x200A0000; #undef REG void dzcnputc (); @@ -322,10 +322,10 @@ int dzcninit(cndev) struct consdev *cndev; { - dz = (void*)uvax_phys2virt ((int) dz); - ka410_intreq = (void*)uvax_phys2virt ((int)ka410_intreq); - ka410_intclr = (void*)uvax_phys2virt ((int)ka410_intclr); - ka410_intmsk = (void*)uvax_phys2virt ((int)ka410_intmsk); + dz = (void *)uvax_phys2virt ((int) dz); + ka410_intreq = (void *)uvax_phys2virt ((int)ka410_intreq); + ka410_intclr = (void *)uvax_phys2virt ((int)ka410_intclr); + ka410_intmsk = (void *)uvax_phys2virt ((int)ka410_intmsk); dz->csr = 0; /* Disable scanning until initting is done */ dz->rbuf = 0; /* Turn off line 0's receiver */ diff --git a/sys/arch/vax/vax/ibus.c b/sys/arch/vax/vax/ibus.c index e804ad2d416..b694175891f 100644 --- a/sys/arch/vax/vax/ibus.c +++ b/sys/arch/vax/vax/ibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ibus.c,v 1.4 2001/08/25 13:33:37 hugh Exp $ */ +/* $OpenBSD: ibus.c,v 1.5 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ibus.c,v 1.7 2001/02/04 20:36:32 ragge Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. @@ -41,7 +41,7 @@ static int ibus_print(void *, const char *); static int ibus_match(struct device *, struct cfdata *, void *); -static void ibus_attach(struct device *, struct device *, void*); +static void ibus_attach(struct device *, struct device *, void *); struct cfdriver ibus_cd = { NULL, "ibus", DV_DULL diff --git a/sys/arch/vax/vax/ka43.c b/sys/arch/vax/vax/ka43.c index 9c57da6bda2..f31f79a88b9 100644 --- a/sys/arch/vax/vax/ka43.c +++ b/sys/arch/vax/vax/ka43.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ka43.c,v 1.8 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: ka43.c,v 1.9 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ka43.c,v 1.19 1999/09/06 19:52:53 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -89,9 +89,9 @@ struct cpu_dep ka43_calls = { * enabled. Thus we initialize these four pointers with physical addresses, * but before leving ka43_steal_pages() we reset them to virtual addresses. */ -static volatile struct ka43_cpu *ka43_cpu = (void*)KA43_CPU_BASE; -static volatile u_int *ka43_creg = (void*)KA43_CH2_CREG; -static volatile u_int *ka43_ctag = (void*)KA43_CT2_BASE; +static volatile struct ka43_cpu *ka43_cpu = (void *)KA43_CPU_BASE; +static volatile u_int *ka43_creg = (void *)KA43_CH2_CREG; +static volatile u_int *ka43_ctag = (void *)KA43_CT2_BASE; #define KA43_MC_RESTART 0x00008000 /* Restart possible*/ #define KA43_PSL_FPDONE 0x00010000 /* First Part Done */ @@ -138,7 +138,7 @@ int ka43_mchk(addr) caddr_t addr; { - register struct ka43_mcframe *mcf = (void*)addr; + register struct ka43_mcframe *mcf = (void *)addr; mtpr(0x00, PR_MCESR); /* Acknowledge the machine check */ printf("machine check %d (0x%x)\n", mcf->mc43_code, mcf->mc43_code); @@ -276,7 +276,7 @@ ka43_cache_invalidate() int ka43_cache_enable() { - volatile char *membase = (void*)0x80000000; /* physical 0x00 */ + volatile char *membase = (void *)0x80000000; /* physical 0x00 */ int i, val; val = KA43_PCS_FLUSH | KA43_PCS_REFRESH; diff --git a/sys/arch/vax/vax/ka670.c b/sys/arch/vax/vax/ka670.c index 69d08c9a4e5..9e73780932b 100644 --- a/sys/arch/vax/vax/ka670.c +++ b/sys/arch/vax/vax/ka670.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ka670.c,v 1.4 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: ka670.c,v 1.5 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ka670.c,v 1.4 2000/03/13 23:52:35 soren Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. @@ -125,7 +125,7 @@ int ka670_mchk(addr) caddr_t addr; { - register struct ka670_mcframe *mcf = (void*)addr; + register struct ka670_mcframe *mcf = (void *)addr; mtpr(0x00, PR_MCESR); /* Acknowledge the machine check */ printf("machine check %d (0x%x)\n", mcf->mc670_code, mcf->mc670_code); diff --git a/sys/arch/vax/vax/ka780.c b/sys/arch/vax/vax/ka780.c index 346ca3b23a7..335bd359e11 100644 --- a/sys/arch/vax/vax/ka780.c +++ b/sys/arch/vax/vax/ka780.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ka780.c,v 1.7 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: ka780.c,v 1.8 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ka780.c,v 1.14 1999/08/07 10:36:49 ragge Exp $ */ /*- * Copyright (c) 1982, 1986, 1988 The Regents of the University of California. @@ -52,7 +52,7 @@ static void ka780_memerr(void); static int ka780_mchk(caddr_t); static void ka780_conf(void); static int mem_sbi_match(struct device *, struct cfdata *, void *); -static void mem_sbi_attach(struct device *, struct device *, void*); +static void mem_sbi_attach(struct device *, struct device *, void *); struct cfattach mem_sbi_ca = { sizeof(struct mem_softc), mem_sbi_match, mem_sbi_attach diff --git a/sys/arch/vax/vax/ka820.c b/sys/arch/vax/vax/ka820.c index d1a994ef821..334450f1849 100644 --- a/sys/arch/vax/vax/ka820.c +++ b/sys/arch/vax/vax/ka820.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ka820.c,v 1.8 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: ka820.c,v 1.9 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ka820.c,v 1.22 2000/06/04 02:19:27 matt Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -69,7 +69,7 @@ struct rx50device *rx50device_ptr; static volatile struct ka820clock *ka820_clkpage; static int ka820_match(struct device *, struct cfdata *, void *); -static void ka820_attach(struct device *, struct device *, void*); +static void ka820_attach(struct device *, struct device *, void *); static void ka820_memerr(void); static void ka820_conf(void); static int ka820_mchk(caddr_t); @@ -228,7 +228,7 @@ struct ms820regs { #define MS2_SYN 0x0000007f /* error syndrome (ro, rw diag) */ static int ms820_match(struct device *, struct cfdata *, void *); -static void ms820_attach(struct device *, struct device *, void*); +static void ms820_attach(struct device *, struct device *, void *); struct mem_bi_softc { struct device sc_dev; diff --git a/sys/arch/vax/vax/ka860.c b/sys/arch/vax/vax/ka860.c index ab6349893dc..bc6343c1401 100644 --- a/sys/arch/vax/vax/ka860.c +++ b/sys/arch/vax/vax/ka860.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ka860.c,v 1.6 2002/03/14 01:26:48 millert Exp $ */ +/* $OpenBSD: ka860.c,v 1.7 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: ka860.c,v 1.15 1999/08/07 10:36:49 ragge Exp $ */ /* * Copyright (c) 1986, 1988 Regents of the University of California. @@ -339,7 +339,7 @@ ka86_reboot(howto) static int abus_print(void *, const char *); static int abus_match(struct device *, struct cfdata *, void *); -static void abus_attach(struct device *, struct device *, void*); +static void abus_attach(struct device *, struct device *, void *); struct cfattach abus_ca = { sizeof(struct device), abus_match, abus_attach diff --git a/sys/arch/vax/vax/sbi.c b/sys/arch/vax/vax/sbi.c index 9e8a487e58c..725c2fda9b8 100644 --- a/sys/arch/vax/vax/sbi.c +++ b/sys/arch/vax/vax/sbi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sbi.c,v 1.9 2002/03/14 01:26:49 millert Exp $ */ +/* $OpenBSD: sbi.c,v 1.10 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: sbi.c,v 1.20 1999/08/07 10:36:50 ragge Exp $ */ /* * Copyright (c) 1994 Ludd, University of Lule}, Sweden. @@ -45,7 +45,7 @@ static int sbi_print(void *, const char *); static int sbi_match(struct device *, struct cfdata *, void *); -static void sbi_attach(struct device *, struct device *, void*); +static void sbi_attach(struct device *, struct device *, void *); int sbi_print(aux, name) @@ -106,7 +106,7 @@ sbi_attach(parent, self, aux) sa.nexnum = nexnum; sa.nexaddr = nexusP; - config_found(self, (void*)&sa, sbi_print); + config_found(self, (void *)&sa, sbi_print); } } } diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c index 4755e6f168b..25dec04a9ee 100644 --- a/sys/arch/vax/vax/trap.c +++ b/sys/arch/vax/vax/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.21 2002/03/14 01:26:49 millert Exp $ */ +/* $OpenBSD: trap.c,v 1.22 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: trap.c,v 1.47 1999/08/21 19:26:20 matt Exp $ */ /* * Copyright (c) 1994 Ludd, University of Lule}, Sweden. @@ -382,7 +382,7 @@ if(startsysc)printf("trap syscall %s pc %lx, psl %lx, sp %lx, pid %d, frame %p\n rval[0] = 0; rval[1] = frame->r1; if(callp->sy_narg) { - err = copyin((char*)frame->ap + 4, args, callp->sy_argsize); + err = copyin((char *)frame->ap + 4, args, callp->sy_argsize); if (err) { #ifdef KTRACE if (KTRPOINT(p, KTR_SYSCALL)) diff --git a/sys/arch/vax/vsa/dc.c b/sys/arch/vax/vsa/dc.c index 5904be8291c..8f33e5a7da2 100644 --- a/sys/arch/vax/vsa/dc.c +++ b/sys/arch/vax/vsa/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.7 2002/03/14 01:26:49 millert Exp $ */ +/* $OpenBSD: dc.c,v 1.8 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: dc.c,v 1.4 1996/10/13 03:36:10 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -252,7 +252,7 @@ dcattach(parent, self, aux) u_long dcaddr; dcaddr = (u_long)ca->ca_ioaddr; - (void) dc_doprobe((void*)uvax_phys2virt(dcaddr), + (void) dc_doprobe((void *)uvax_phys2virt(dcaddr), self->dv_unit, self->dv_cfdata->cf_flags, ca->ca_intslot); diff --git a/sys/arch/vax/vsa/dz_ibus.c b/sys/arch/vax/vsa/dz_ibus.c index 34dbf058c43..9b8d9cce23f 100644 --- a/sys/arch/vax/vsa/dz_ibus.c +++ b/sys/arch/vax/vsa/dz_ibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dz_ibus.c,v 1.10 2002/03/14 01:26:49 millert Exp $ */ +/* $OpenBSD: dz_ibus.c,v 1.11 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: dz_ibus.c,v 1.15 1999/08/27 17:50:42 ragge Exp $ */ /* * Copyright (c) 1998 Ludd, University of Lule}, Sweden. @@ -286,7 +286,7 @@ void dzcninit(cndev) struct consdev *cndev; { - dz = (void*)dz_regs; + dz = (void *)dz_regs; dz->csr = 0; /* Disable scanning until initting is done */ dz->tcr = (1 << minor(cndev->cn_dev)); /* Turn on xmitter */ diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c index 0cc15e94874..1fbbaf07a6c 100644 --- a/sys/arch/vax/vsa/hdc9224.c +++ b/sys/arch/vax/vsa/hdc9224.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hdc9224.c,v 1.7 2002/03/14 01:26:49 millert Exp $ */ +/* $OpenBSD: hdc9224.c,v 1.8 2002/03/14 03:16:02 millert Exp $ */ /* $NetBSD: hdc9224.c,v 1.6 1997/03/15 16:32:22 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -276,7 +276,7 @@ hdcattach(parent, self, aux) struct device *parent, *self; void *aux; { - struct hdcsoftc *sc = (void*)self; + struct hdcsoftc *sc = (void *)self; struct confargs *ca = aux; struct hdc_attach_args ha; @@ -289,7 +289,7 @@ hdcattach(parent, self, aux) sc->sc_cfargs = ca; sc->sc_ioaddr = ca->ca_ioaddr; - sc->sc_dkc = (void*)uvax_phys2virt(sc->sc_ioaddr); + sc->sc_dkc = (void *)uvax_phys2virt(sc->sc_ioaddr); sc->sc_ibit = ca->ca_intbit; sc->sc_ivec = ca->ca_intvec; sc->sc_status = 0; @@ -297,8 +297,8 @@ hdcattach(parent, self, aux) sc->sc_flags = 0; sc->sc_errors = 0; - sc->sc_dkc = (void*)uvax_phys2virt(KA410_DKC_BASE); - sc->sc_dmabase = (void*)uvax_phys2virt(KA410_DMA_BASE); + sc->sc_dkc = (void *)uvax_phys2virt(KA410_DKC_BASE); + sc->sc_dmabase = (void *)uvax_phys2virt(KA410_DMA_BASE); sc->sc_dmasize = KA410_DMA_SIZE; if (hdc_reset(sc) != 0) { @@ -311,7 +311,7 @@ hdcattach(parent, self, aux) * now probe for all possible disks */ for (ha.ha_drive=0; ha.ha_drive<3; ha.ha_drive++) - (void)config_found(self, (void*)&ha, hdprint); + (void)config_found(self, (void *)&ha, hdprint); #ifdef notyet /* @@ -330,7 +330,7 @@ hdmatch(parent, match, aux) struct device *parent; void *match, *aux; { - struct hdcsoftc *hdc = (void*)parent; + struct hdcsoftc *hdc = (void *)parent; struct cfdata *cf = match; struct hdc_attach_args *ha = aux; int drive = ha->ha_drive; @@ -365,8 +365,8 @@ hdattach(parent, self, aux) struct device *parent, *self; void *aux; { - struct hdcsoftc *hdc = (void*)parent; - struct hdsoftc *hd = (void*)self; + struct hdcsoftc *hdc = (void *)parent; + struct hdsoftc *hd = (void *)self; struct hdc_attach_args *ha = aux; struct hdparams *hp = &hd->sc_param; @@ -626,7 +626,7 @@ hdc_mid2str(media_id, name) u_long a0:5; /* 'R' encoded with base '@' */ u_long d1:5; /* 'U' encoded with base '@' */ u_long d0:5; /* 'D' encoded with base '@' */ - } *p = (void*)&media_id; + } *p = (void *)&media_id; #define MIDCHR(x) (x ? x + '@' : ' ') @@ -688,7 +688,7 @@ hdc_getlabel(hdc, hd, unit) int unit; { struct disklabel *lp = hd->sc_dk.dk_label; - struct disklabel *xp = (void*)(hdc_iobuf + 64); + struct disklabel *xp = (void *)(hdc_iobuf + 64); int res; trace(("hdc_getlabel(%d)\n", unit)); @@ -935,7 +935,7 @@ hdc_readregs(sc) trace(("hdc_readregs()\n")); sc->sc_dkc->dkc_cmd = 0x40; /* set internal counter to zero */ - p = (void*)&sc->sc_sreg; + p = (void *)&sc->sc_sreg; for (i=0; i<10; i++) *p++ = sc->sc_dkc->dkc_reg; /* dkc_reg auto-increments */ } @@ -950,7 +950,7 @@ hdc_writeregs(sc) trace(("hdc_writeregs()\n")); sc->sc_dkc->dkc_cmd = 0x40; /* set internal counter to zero */ - p = (void*)&sc->sc_creg; + p = (void *)&sc->sc_creg; for (i=0; i<10; i++) sc->sc_dkc->dkc_reg = *p++; /* dkc_reg auto-increments */ } @@ -964,9 +964,9 @@ hdc_command(sc, cmd) struct hdcsoftc *sc; int cmd; { - volatile u_char *intreq = (void*)uvax_phys2virt(KA410_INTREQ); - volatile u_char *intclr = (void*)uvax_phys2virt(KA410_INTCLR); - volatile u_char *intmsk = (void*)uvax_phys2virt(KA410_INTMSK); + volatile u_char *intreq = (void *)uvax_phys2virt(KA410_INTREQ); + volatile u_char *intclr = (void *)uvax_phys2virt(KA410_INTCLR); + volatile u_char *intmsk = (void *)uvax_phys2virt(KA410_INTMSK); int i, c; trace (("hdc_command(%x)\n", cmd)); diff --git a/sys/arch/vax/vsa/lk201.c b/sys/arch/vax/vsa/lk201.c index c57dc8e9d09..3413416ee00 100644 --- a/sys/arch/vax/vsa/lk201.c +++ b/sys/arch/vax/vsa/lk201.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lk201.c,v 1.4 2002/03/14 01:26:49 millert Exp $ */ +/* $OpenBSD: lk201.c,v 1.5 2002/03/14 03:16:02 millert Exp $ */ /* * The LK201 keycode mapping routine is here, along with initialization @@ -19,7 +19,7 @@ /* Exported functions */ extern int kbdMapChar(int keycode); -extern void KBDReset __P(( dev_t dev, void (*putc) (dev_t, int) )); +extern void KBDReset(dev_t dev, void (*putc)(dev_t, int)); /* * Keyboard to Ascii, unshifted. |