Use proper ANSI prototypes for foo() -> foo(void)

Caught when compiling with -Wold-style-definition
This commit is contained in:
matt 2012-01-30 23:31:27 +00:00
parent 286b7417a0
commit 4b50cb788d
6 changed files with 21 additions and 21 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/bus.h>
@ -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;

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/bus.h>
@ -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;

View File

@ -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 <sys/cdefs.h>
__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) {

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/kmem.h>
@ -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);

View File

@ -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 <sys/cdefs.h>
__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,

View File

@ -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;