From 4b50cb788d1ee9fc67f7138bdf3737f468bba919 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 30 Jan 2012 23:31:27 +0000 Subject: [PATCH] Use proper ANSI prototypes for foo() -> foo(void) Caught when compiling with -Wold-style-definition --- sys/arch/powerpc/marvell/pic_discovery.c | 6 +++--- sys/dev/marvell/gtidmac.c | 6 +++--- sys/kern/subr_autoconf.c | 10 +++++----- sys/net/bpf_stub.c | 8 ++++---- sys/netinet/tcp_sack.c | 6 +++--- sys/sys/dtrace_bsd.h | 6 +++--- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/sys/arch/powerpc/marvell/pic_discovery.c b/sys/arch/powerpc/marvell/pic_discovery.c index e342a6c54b6c..a2a177a1021f 100644 --- a/sys/arch/powerpc/marvell/pic_discovery.c +++ b/sys/arch/powerpc/marvell/pic_discovery.c @@ -1,4 +1,4 @@ -/* $NetBSD: pic_discovery.c,v 1.5 2011/06/20 06:22:23 matt Exp $ */ +/* $NetBSD: pic_discovery.c,v 1.6 2012/01/30 23:31:28 matt Exp $ */ /* * Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc. @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pic_discovery.c,v 1.5 2011/06/20 06:22:23 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pic_discovery.c,v 1.6 2012/01/30 23:31:28 matt Exp $"); #include #include @@ -85,7 +85,7 @@ static void discovery_gpp_ack_irq(struct pic_ops *, int); struct pic_ops * -setup_discovery_pic() +setup_discovery_pic(void) { struct discovery_pic_ops *discovery; struct pic_ops *pic; diff --git a/sys/dev/marvell/gtidmac.c b/sys/dev/marvell/gtidmac.c index 796fb2ce3d32..2f34ffe55837 100644 --- a/sys/dev/marvell/gtidmac.c +++ b/sys/dev/marvell/gtidmac.c @@ -1,4 +1,4 @@ -/* $NetBSD: gtidmac.c,v 1.6 2010/08/01 06:57:06 kiyohara Exp $ */ +/* $NetBSD: gtidmac.c,v 1.7 2012/01/30 23:31:28 matt Exp $ */ /* * Copyright (c) 2008 KIYOHARA Takashi * All rights reserved. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: gtidmac.c,v 1.6 2010/08/01 06:57:06 kiyohara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: gtidmac.c,v 1.7 2012/01/30 23:31:28 matt Exp $"); #include #include @@ -1002,7 +1002,7 @@ gtidmac_dmmap_unload(struct gtidmac_softc *sc, bus_dmamap_t dmamap, int read) void * -gtidmac_tag_get() +gtidmac_tag_get(void) { return gtidmac_softc; diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index 3d6b91d062a8..984b04aa7a4f 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_autoconf.c,v 1.221 2012/01/16 19:42:40 pgoyette Exp $ */ +/* $NetBSD: subr_autoconf.c,v 1.222 2012/01/30 23:31:27 matt Exp $ */ /* * Copyright (c) 1996, 2000 Christopher G. Demetriou @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.221 2012/01/16 19:42:40 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.222 2012/01/30 23:31:27 matt Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -441,7 +441,7 @@ config_interrupts_thread(void *cookie) } void -config_create_interruptthreads() +config_create_interruptthreads(void) { int i; @@ -465,7 +465,7 @@ config_mountroot_thread(void *cookie) } void -config_create_mountrootthreads() +config_create_mountrootthreads(void) { int i; @@ -2108,7 +2108,7 @@ config_finalize(void) } void -config_twiddle_init() +config_twiddle_init(void) { if ((boothowto & (AB_SILENT|AB_VERBOSE)) == AB_SILENT) { diff --git a/sys/net/bpf_stub.c b/sys/net/bpf_stub.c index 99a7a4dc224e..42816bfdb098 100644 --- a/sys/net/bpf_stub.c +++ b/sys/net/bpf_stub.c @@ -1,4 +1,4 @@ -/* $NetBSD: bpf_stub.c,v 1.5 2010/04/05 07:22:22 joerg Exp $ */ +/* $NetBSD: bpf_stub.c,v 1.6 2012/01/30 23:31:27 matt Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bpf_stub.c,v 1.5 2010/04/05 07:22:22 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bpf_stub.c,v 1.6 2012/01/30 23:31:27 matt Exp $"); #include #include @@ -160,7 +160,7 @@ bpf_stub_warn(void) } void -bpf_setops() +bpf_setops(void) { mutex_init(&handovermtx, MUTEX_DEFAULT, IPL_NONE); @@ -197,7 +197,7 @@ bpf_ops_handover_enter(struct bpf_ops *newops) /* hangover done */ void -bpf_ops_handover_exit() +bpf_ops_handover_exit(void) { mutex_enter(&handovermtx); diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c index b642c7839b2b..caa28c744c60 100644 --- a/sys/netinet/tcp_sack.c +++ b/sys/netinet/tcp_sack.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_sack.c,v 1.27 2011/07/17 20:54:53 joerg Exp $ */ +/* $NetBSD: tcp_sack.c,v 1.28 2012/01/30 23:31:27 matt Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -102,7 +102,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.27 2011/07/17 20:54:53 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.28 2012/01/30 23:31:27 matt Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -164,7 +164,7 @@ __KERNEL_RCSID(0, "$NetBSD: tcp_sack.c,v 1.27 2011/07/17 20:54:53 joerg Exp $"); static struct pool sackhole_pool; void -tcp_sack_init() +tcp_sack_init(void) { pool_init(&sackhole_pool, sizeof(struct sackhole), 0, 0, 0, diff --git a/sys/sys/dtrace_bsd.h b/sys/sys/dtrace_bsd.h index 0586c5932657..a42a71573516 100644 --- a/sys/sys/dtrace_bsd.h +++ b/sys/sys/dtrace_bsd.h @@ -1,4 +1,4 @@ -/* $NetBSD: dtrace_bsd.h,v 1.4 2010/06/04 23:17:28 rmind Exp $ */ +/* $NetBSD: dtrace_bsd.h,v 1.5 2012/01/30 23:31:27 matt Exp $ */ /*- * Copyright (c) 2007-2008 John Birrell (jb@freebsd.org) @@ -186,7 +186,7 @@ static inline void kdtrace_thread_dtor(void *, struct lwp *); /* Return the DTrace process data size compiled in the kernel hooks. */ static inline size_t -kdtrace_proc_size() +kdtrace_proc_size(void) { return KDTRACE_PROC_SIZE; @@ -194,7 +194,7 @@ kdtrace_proc_size() /* Return the DTrace thread data size compiled in the kernel hooks. */ static inline size_t -kdtrace_thread_size() +kdtrace_thread_size(void) { return KDTRACE_THREAD_SIZE;