Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Use proper ANSI prototypes for foo() -> foo(void)



details:   https://anonhg.NetBSD.org/src/rev/2f214b7b8be1
branches:  trunk
changeset: 773325:2f214b7b8be1
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 30 23:31:27 2012 +0000

description:
Use proper ANSI prototypes for foo() -> foo(void)
Caught when compiling with -Wold-style-definition

diffstat:

 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(-)

diffs (189 lines):

diff -r 2e6204dc2224 -r 2f214b7b8be1 sys/arch/powerpc/marvell/pic_discovery.c
--- a/sys/arch/powerpc/marvell/pic_discovery.c  Mon Jan 30 22:51:51 2012 +0000
+++ b/sys/arch/powerpc/marvell/pic_discovery.c  Mon Jan 30 23:31:27 2012 +0000
@@ -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 @@
 
 
 struct pic_ops *
-setup_discovery_pic()
+setup_discovery_pic(void)
 {
        struct discovery_pic_ops *discovery;
        struct pic_ops *pic;
diff -r 2e6204dc2224 -r 2f214b7b8be1 sys/dev/marvell/gtidmac.c
--- a/sys/dev/marvell/gtidmac.c Mon Jan 30 22:51:51 2012 +0000
+++ b/sys/dev/marvell/gtidmac.c Mon Jan 30 23:31:27 2012 +0000
@@ -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 @@
 
 
 void *
-gtidmac_tag_get()
+gtidmac_tag_get(void)
 {
 
        return gtidmac_softc;
diff -r 2e6204dc2224 -r 2f214b7b8be1 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Mon Jan 30 22:51:51 2012 +0000
+++ b/sys/kern/subr_autoconf.c  Mon Jan 30 23:31:27 2012 +0000
@@ -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 @@
 }
 
 void
-config_create_interruptthreads()
+config_create_interruptthreads(void)
 {
        int i;
 
@@ -465,7 +465,7 @@
 }
 
 void
-config_create_mountrootthreads()
+config_create_mountrootthreads(void)
 {
        int i;
 
@@ -2108,7 +2108,7 @@
 }
 
 void
-config_twiddle_init()
+config_twiddle_init(void)
 {
 
        if ((boothowto & (AB_SILENT|AB_VERBOSE)) == AB_SILENT) {
diff -r 2e6204dc2224 -r 2f214b7b8be1 sys/net/bpf_stub.c
--- a/sys/net/bpf_stub.c        Mon Jan 30 22:51:51 2012 +0000
+++ b/sys/net/bpf_stub.c        Mon Jan 30 23:31:27 2012 +0000
@@ -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 @@
 }
 
 void
-bpf_setops()
+bpf_setops(void)
 {
 
        mutex_init(&handovermtx, MUTEX_DEFAULT, IPL_NONE);
@@ -197,7 +197,7 @@
 
 /* hangover done */
 void
-bpf_ops_handover_exit()
+bpf_ops_handover_exit(void)
 {
 
        mutex_enter(&handovermtx);
diff -r 2e6204dc2224 -r 2f214b7b8be1 sys/netinet/tcp_sack.c
--- a/sys/netinet/tcp_sack.c    Mon Jan 30 22:51:51 2012 +0000
+++ b/sys/netinet/tcp_sack.c    Mon Jan 30 23:31:27 2012 +0000
@@ -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 @@
 static struct pool sackhole_pool;
 
 void
-tcp_sack_init()
+tcp_sack_init(void)
 {
 
        pool_init(&sackhole_pool, sizeof(struct sackhole), 0, 0, 0,
diff -r 2e6204dc2224 -r 2f214b7b8be1 sys/sys/dtrace_bsd.h
--- a/sys/sys/dtrace_bsd.h      Mon Jan 30 22:51:51 2012 +0000
+++ b/sys/sys/dtrace_bsd.h      Mon Jan 30 23:31:27 2012 +0000
@@ -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@localhost)
@@ -186,7 +186,7 @@
 
 /* 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 @@
 
 /* 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;



Home | Main Index | Thread Index | Old Index