diff options
| author | cegger <cegger@NetBSD.org> | 2009-03-15 21:23:31 +0000 |
|---|---|---|
| committer | cegger <cegger@NetBSD.org> | 2009-03-15 21:23:31 +0000 |
| commit | dc56dbbd97fec6df1bd1788bd35f2da09ae91ea1 (patch) | |
| tree | 8a184dbd9a777bd5d097eaf35dddf3cb11c4944f | |
| parent | d3189d3544a3f2261e77b245bdd779e69c7b66c3 (diff) | |
ansify function definitions
| -rw-r--r-- | sys/arch/x86/pci/pci_machdep.c | 6 | ||||
| -rw-r--r-- | sys/arch/x86/x86/consinit.c | 6 | ||||
| -rw-r--r-- | sys/arch/x86/x86/vga_post.c | 6 | ||||
| -rw-r--r-- | sys/dev/pci/pciide_common.c | 22 | ||||
| -rw-r--r-- | sys/dev/rasops/rasops_bitops.h | 14 | ||||
| -rw-r--r-- | sys/net/agr/if_agrsoftc.c | 6 | ||||
| -rw-r--r-- | sys/netatalk/aarp.c | 6 | ||||
| -rw-r--r-- | sys/netatalk/ddp_input.c | 6 | ||||
| -rw-r--r-- | sys/netinet/tcp_input.c | 6 | ||||
| -rw-r--r-- | sys/netinet6/raw_ip6.c | 6 | ||||
| -rw-r--r-- | sys/netinet6/scope6.c | 6 | ||||
| -rw-r--r-- | sys/ufs/lfs/lfs_vfsops.c | 12 |
12 files changed, 46 insertions, 56 deletions
diff --git a/sys/arch/x86/pci/pci_machdep.c b/sys/arch/x86/pci/pci_machdep.c index abf87dfb751..21b252db795 100644 --- a/sys/arch/x86/pci/pci_machdep.c +++ b/sys/arch/x86/pci/pci_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_machdep.c,v 1.34 2008/04/28 20:23:40 martin Exp $ */ +/* $NetBSD: pci_machdep.c,v 1.35 2009/03/15 21:32:36 cegger Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -73,7 +73,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.34 2008/04/28 20:23:40 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.35 2009/03/15 21:32:36 cegger Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -560,7 +560,7 @@ not2: * which cannot safely use memory-mapped device access. */ int -pci_bus_flags() +pci_bus_flags(void) { int rval = PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED | PCI_FLAGS_MRL_OKAY | PCI_FLAGS_MRM_OKAY | PCI_FLAGS_MWI_OKAY; diff --git a/sys/arch/x86/x86/consinit.c b/sys/arch/x86/x86/consinit.c index 7777ed73cde..fb060f0935e 100644 --- a/sys/arch/x86/x86/consinit.c +++ b/sys/arch/x86/x86/consinit.c @@ -1,4 +1,4 @@ -/* $NetBSD: consinit.c,v 1.18 2009/02/19 01:14:43 jmcneill Exp $ */ +/* $NetBSD: consinit.c,v 1.19 2009/03/15 21:32:36 cegger Exp $ */ /* * Copyright (c) 1998 @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.18 2009/02/19 01:14:43 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.19 2009/03/15 21:32:36 cegger Exp $"); #include "opt_kgdb.h" @@ -146,7 +146,7 @@ int comkgdbmode = KGDB_DEVMODE; * it shouldn't be called from init386 either. */ void -consinit() +consinit(void) { const struct btinfo_console *consinfo; const struct btinfo_framebuffer *fbinfo; diff --git a/sys/arch/x86/x86/vga_post.c b/sys/arch/x86/x86/vga_post.c index c60c68e3561..1255c1f5c2c 100644 --- a/sys/arch/x86/x86/vga_post.c +++ b/sys/arch/x86/x86/vga_post.c @@ -1,4 +1,4 @@ -/* $NetBSD: vga_post.c,v 1.11 2008/09/08 21:32:50 joerg Exp $ */ +/* $NetBSD: vga_post.c,v 1.12 2009/03/15 21:32:36 cegger Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vga_post.c,v 1.11 2008/09/08 21:32:50 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vga_post.c,v 1.12 2009/03/15 21:32:36 cegger Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -238,7 +238,7 @@ vga_post_free(struct vga_post *sc) #ifdef DDB void -ddb_vgapost() +ddb_vgapost(void) { if (ddb_vgapostp) diff --git a/sys/dev/pci/pciide_common.c b/sys/dev/pci/pciide_common.c index 24f0709d500..a7a738528e9 100644 --- a/sys/dev/pci/pciide_common.c +++ b/sys/dev/pci/pciide_common.c @@ -1,4 +1,4 @@ -/* $NetBSD: pciide_common.c,v 1.40 2009/03/14 21:04:21 dsl Exp $ */ +/* $NetBSD: pciide_common.c,v 1.41 2009/03/15 21:28:09 cegger Exp $ */ /* @@ -76,7 +76,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pciide_common.c,v 1.40 2009/03/14 21:04:21 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pciide_common.c,v 1.41 2009/03/15 21:28:09 cegger Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -245,11 +245,9 @@ bad: } void -pciide_mapregs_native(pa, cp, cmdsizep, ctlsizep, pci_intr) - struct pci_attach_args * pa; - struct pciide_channel *cp; - bus_size_t *cmdsizep, *ctlsizep; - int (*pci_intr)(void *); +pciide_mapregs_native(struct pci_attach_args *pa, + struct pciide_channel *cp, bus_size_t *cmdsizep, + bus_size_t *ctlsizep, int (*pci_intr)(void *)) { struct pciide_softc *sc = CHAN_TO_PCIIDE(&cp->ata_channel); struct ata_channel *wdc_cp = &cp->ata_channel; @@ -784,12 +782,10 @@ pciide_chansetup(struct pciide_softc *sc, int channel, pcireg_t interface) /* some common code used by several chip channel_map */ void -pciide_mapchan(pa, cp, interface, cmdsizep, ctlsizep, pci_intr) - struct pci_attach_args *pa; - struct pciide_channel *cp; - pcireg_t interface; - bus_size_t *cmdsizep, *ctlsizep; - int (*pci_intr)(void *); +pciide_mapchan(struct pci_attach_args *pa, + struct pciide_channel *cp, + pcireg_t interface, bus_size_t *cmdsizep, + bus_size_t *ctlsizep, int (*pci_intr)(void *)) { struct ata_channel *wdc_cp = &cp->ata_channel; diff --git a/sys/dev/rasops/rasops_bitops.h b/sys/dev/rasops/rasops_bitops.h index e3046ae2a69..ccf3a5c0c89 100644 --- a/sys/dev/rasops/rasops_bitops.h +++ b/sys/dev/rasops/rasops_bitops.h @@ -1,4 +1,4 @@ -/* $NetBSD: rasops_bitops.h,v 1.10 2008/04/28 20:23:56 martin Exp $ */ +/* $NetBSD: rasops_bitops.h,v 1.11 2009/03/15 21:29:15 cegger Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -36,10 +36,7 @@ * Erase columns. */ static void -NAME(erasecols)(cookie, row, col, num, attr) - void *cookie; - int row, col, num; - long attr; +NAME(erasecols)(void *cookie, int row, int col, int num, long attr) { int lmask, rmask, lclr, rclr, clr; struct rasops_info *ri; @@ -113,8 +110,7 @@ NAME(erasecols)(cookie, row, col, num, attr) * Actually paint the cursor. */ static void -NAME(do_cursor)(ri) - struct rasops_info *ri; +NAME(do_cursor)(struct rasops_info *ri) { int lmask, rmask, height, row, col, num; int32_t *dp, *rp; @@ -154,9 +150,7 @@ NAME(do_cursor)(ri) * Copy columns. Ick! */ static void -NAME(copycols)(cookie, row, src, dst, num) - void *cookie; - int row, src, dst, num; +NAME(copycols)(void *cookie, int row, int src, int dst, int num) { int tmp, lmask, rmask, height, lnum, rnum, sb, db, cnt, full; int32_t *sp, *dp, *srp, *drp; diff --git a/sys/net/agr/if_agrsoftc.c b/sys/net/agr/if_agrsoftc.c index 2de792ac151..bbebaa602b5 100644 --- a/sys/net/agr/if_agrsoftc.c +++ b/sys/net/agr/if_agrsoftc.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_agrsoftc.c,v 1.3 2005/11/23 09:43:37 yamt Exp $ */ +/* $NetBSD: if_agrsoftc.c,v 1.4 2009/03/15 21:23:31 cegger Exp $ */ /*- * Copyright (c)2005 YAMAMOTO Takashi, @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_agrsoftc.c,v 1.3 2005/11/23 09:43:37 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_agrsoftc.c,v 1.4 2009/03/15 21:23:31 cegger Exp $"); #include <sys/param.h> #include <sys/callout.h> @@ -43,7 +43,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_agrsoftc.c,v 1.3 2005/11/23 09:43:37 yamt Exp $") */ struct agr_softc * -agr_alloc_softc() +agr_alloc_softc(void) { struct agr_softc *sc; union { diff --git a/sys/netatalk/aarp.c b/sys/netatalk/aarp.c index 4e245ef2a47..b6d27311888 100644 --- a/sys/netatalk/aarp.c +++ b/sys/netatalk/aarp.c @@ -1,4 +1,4 @@ -/* $NetBSD: aarp.c,v 1.28 2009/03/14 15:36:23 dsl Exp $ */ +/* $NetBSD: aarp.c,v 1.29 2009/03/15 21:24:24 cegger Exp $ */ /* * Copyright (c) 1990,1991 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.28 2009/03/14 15:36:23 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.29 2009/03/15 21:24:24 cegger Exp $"); #include "opt_mbuftrace.h" @@ -632,7 +632,7 @@ aarpprobe(void *arp) } void -aarp_clean() +aarp_clean(void) { struct aarptab *aat; int i; diff --git a/sys/netatalk/ddp_input.c b/sys/netatalk/ddp_input.c index e0b82453df7..2a71ca706c5 100644 --- a/sys/netatalk/ddp_input.c +++ b/sys/netatalk/ddp_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ddp_input.c,v 1.21 2009/03/14 15:36:23 dsl Exp $ */ +/* $NetBSD: ddp_input.c,v 1.22 2009/03/15 21:24:24 cegger Exp $ */ /* * Copyright (c) 1990,1994 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ddp_input.c,v 1.21 2009/03/14 15:36:23 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ddp_input.c,v 1.22 2009/03/15 21:24:24 cegger Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -59,7 +59,7 @@ void ddp_input(struct mbuf *, struct ifnet *, * Could probably merge these two code segments a little better... */ void -atintr() +atintr(void) { struct elaphdr *elhp, elh; struct ifnet *ifp; diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index a1937cba3a5..0e2be19de44 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_input.c,v 1.292 2009/01/29 20:38:22 pooka Exp $ */ +/* $NetBSD: tcp_input.c,v 1.293 2009/03/15 21:25:32 cegger Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -145,7 +145,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.292 2009/01/29 20:38:22 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.293 2009/03/15 21:25:32 cegger Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -407,7 +407,7 @@ struct mowner tcp_reass_mowner = MOWNER_INIT("tcp", "reass"); static struct pool tcpipqent_pool; void -tcpipqent_init() +tcpipqent_init(void) { pool_init(&tcpipqent_pool, sizeof(struct ipqent), 0, 0, 0, "tcpipqepl", diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index ec735642cd4..82180c5ddc9 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -1,4 +1,4 @@ -/* $NetBSD: raw_ip6.c,v 1.102 2009/01/03 03:43:23 yamt Exp $ */ +/* $NetBSD: raw_ip6.c,v 1.103 2009/03/15 21:26:09 cegger Exp $ */ /* $KAME: raw_ip6.c,v 1.82 2001/07/23 18:57:56 jinmei Exp $ */ /* @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.102 2009/01/03 03:43:23 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.103 2009/03/15 21:26:09 cegger Exp $"); #include "opt_ipsec.h" @@ -130,7 +130,7 @@ static percpu_t *rip6stat_percpu; * Initialize raw connection block queue. */ void -rip6_init() +rip6_init(void) { in6_pcbinit(&raw6cbtable, 1, 1); diff --git a/sys/netinet6/scope6.c b/sys/netinet6/scope6.c index ba2fbdd1cf5..2e9ed25c514 100644 --- a/sys/netinet6/scope6.c +++ b/sys/netinet6/scope6.c @@ -1,4 +1,4 @@ -/* $NetBSD: scope6.c,v 1.6 2007/12/11 12:30:20 lukem Exp $ */ +/* $NetBSD: scope6.c,v 1.7 2009/03/15 21:26:09 cegger Exp $ */ /* $KAME$ */ /*- @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: scope6.c,v 1.6 2007/12/11 12:30:20 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scope6.c,v 1.7 2009/03/15 21:26:09 cegger Exp $"); #include <sys/param.h> #include <sys/malloc.h> @@ -60,7 +60,7 @@ static struct scope6_id sid_default; (((struct in6_ifextra *)(ifp)->if_afdata[AF_INET6])->scope6_id) void -scope6_init() +scope6_init(void) { memset(&sid_default, 0, sizeof(sid_default)); diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c index b631a03928a..17f29b9384a 100644 --- a/sys/ufs/lfs/lfs_vfsops.c +++ b/sys/ufs/lfs/lfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_vfsops.c,v 1.270 2009/02/22 20:28:07 ad Exp $ */ +/* $NetBSD: lfs_vfsops.c,v 1.271 2009/03/15 21:30:57 cegger Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007 @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.270 2009/02/22 20:28:07 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.271 2009/03/15 21:30:57 cegger Exp $"); #if defined(_KERNEL_OPT) #include "opt_lfs.h" @@ -468,7 +468,7 @@ lfs_writerd(void *arg) * Initialize the filesystem, most work done by ufs_init. */ void -lfs_init() +lfs_init(void) { malloc_type_attach(M_SEGMENT); @@ -491,13 +491,13 @@ lfs_init() } void -lfs_reinit() +lfs_reinit(void) { ufs_reinit(); } void -lfs_done() +lfs_done(void) { ufs_done(); mutex_destroy(&lfs_lock); @@ -514,7 +514,7 @@ lfs_done() * Called by main() when ufs is going to be mounted as root. */ int -lfs_mountroot() +lfs_mountroot(void) { extern struct vnode *rootvp; struct mount *mp; |
