Sun Mar 15 17:15:58 2009 UTC ()
ansify function definitions


(cegger)
diff -r1.55 -r1.56 src/sys/fs/adosfs/advfsops.c
diff -r1.6 -r1.7 src/sys/fs/msdosfs/msdosfs_conv.c
diff -r1.35 -r1.36 src/sys/fs/msdosfs/msdosfs_denode.c
diff -r1.72 -r1.73 src/sys/fs/msdosfs/msdosfs_vfsops.c
diff -r1.8 -r1.9 src/sys/fs/ntfs/ntfs_ihash.c
diff -r1.40 -r1.41 src/sys/fs/ntfs/ntfs_subr.c
diff -r1.75 -r1.76 src/sys/fs/ntfs/ntfs_vfsops.c

cvs diff -r1.55 -r1.56 src/sys/fs/adosfs/advfsops.c (expand / switch to context diff)
--- src/sys/fs/adosfs/advfsops.c 2009/03/14 15:36:21 1.55
+++ src/sys/fs/adosfs/advfsops.c 2009/03/15 17:15:57 1.56
@@ -1,4 +1,4 @@
-/*	$NetBSD: advfsops.c,v 1.55 2009/03/14 15:36:21 dsl Exp $	*/
+/*	$NetBSD: advfsops.c,v 1.56 2009/03/15 17:15:57 cegger Exp $	*/
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.55 2009/03/14 15:36:21 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.56 2009/03/15 17:15:57 cegger Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -731,7 +731,7 @@
 }
 
 void
-adosfs_init()
+adosfs_init(void)
 {
 
 	malloc_type_attach(M_ADOSFSMNT);
@@ -743,7 +743,7 @@
 }
 
 void
-adosfs_done()
+adosfs_done(void)
 {
 
 	pool_destroy(&adosfs_node_pool);

cvs diff -r1.6 -r1.7 src/sys/fs/msdosfs/msdosfs_conv.c (expand / switch to context diff)
--- src/sys/fs/msdosfs/msdosfs_conv.c 2009/03/14 15:36:21 1.6
+++ src/sys/fs/msdosfs/msdosfs_conv.c 2009/03/15 17:15:57 1.7
@@ -1,4 +1,4 @@
-/*	$NetBSD: msdosfs_conv.c,v 1.6 2009/03/14 15:36:21 dsl Exp $	*/
+/*	$NetBSD: msdosfs_conv.c,v 1.7 2009/03/15 17:15:57 cegger Exp $	*/
 
 /*-
  * Copyright (C) 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_conv.c,v 1.6 2009/03/14 15:36:21 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_conv.c,v 1.7 2009/03/15 17:15:57 cegger Exp $");
 
 /*
  * System include files.
@@ -344,10 +344,7 @@
  * null.
  */
 int
-dos2unixfn(dn, un, lower)
-	u_char dn[11];
-	u_char *un;
-	int lower;
+dos2unixfn(u_char dn[11], u_char *un, int lower)
 {
 	int i, j;
 	int thislong = 1;
@@ -410,11 +407,7 @@
  *	3 if conversion was successful and generation number was inserted
  */
 int
-unix2dosfn(un, dn, unlen, gen)
-	const u_char *un;
-	u_char dn[12];
-	int unlen;
-	u_int gen;
+unix2dosfn(const u_char *un, u_char dn[12], int unlen, u_int gen)
 {
 	int i, j, l;
 	int conv = 1;

cvs diff -r1.35 -r1.36 src/sys/fs/msdosfs/msdosfs_denode.c (expand / switch to context diff)
--- src/sys/fs/msdosfs/msdosfs_denode.c 2009/03/14 21:04:23 1.35
+++ src/sys/fs/msdosfs/msdosfs_denode.c 2009/03/15 17:15:57 1.36
@@ -1,4 +1,4 @@
-/*	$NetBSD: msdosfs_denode.c,v 1.35 2009/03/14 21:04:23 dsl Exp $	*/
+/*	$NetBSD: msdosfs_denode.c,v 1.36 2009/03/15 17:15:57 cegger Exp $	*/
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.35 2009/03/14 21:04:23 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_denode.c,v 1.36 2009/03/15 17:15:57 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -97,7 +97,7 @@
 MALLOC_DECLARE(M_MSDOSFSFAT);
 
 void
-msdosfs_init()
+msdosfs_init(void)
 {
 
 	malloc_type_attach(M_MSDOSFSMNT);
@@ -115,7 +115,7 @@
  */
 
 void
-msdosfs_reinit()
+msdosfs_reinit(void)
 {
 	struct denode *dep;
 	struct ihashhead *oldhash, *hash;
@@ -142,7 +142,7 @@
 }
 
 void
-msdosfs_done()
+msdosfs_done(void)
 {
 	hashdone(dehashtbl, HASH_LIST, dehash);
 	pool_destroy(&msdosfs_denode_pool);

cvs diff -r1.72 -r1.73 src/sys/fs/msdosfs/msdosfs_vfsops.c (expand / switch to context diff)
--- src/sys/fs/msdosfs/msdosfs_vfsops.c 2009/03/14 15:36:21 1.72
+++ src/sys/fs/msdosfs/msdosfs_vfsops.c 2009/03/15 17:15:57 1.73
@@ -1,4 +1,4 @@
-/*	$NetBSD: msdosfs_vfsops.c,v 1.72 2009/03/14 15:36:21 dsl Exp $	*/
+/*	$NetBSD: msdosfs_vfsops.c,v 1.73 2009/03/15 17:15:57 cegger Exp $	*/
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.72 2009/03/14 15:36:21 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.73 2009/03/15 17:15:57 cegger Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -232,7 +232,7 @@
 }
 
 int
-msdosfs_mountroot()
+msdosfs_mountroot(void)
 {
 	struct mount *mp;
 	struct lwp *l = curlwp;	/* XXX */

cvs diff -r1.8 -r1.9 src/sys/fs/ntfs/ntfs_ihash.c (expand / switch to context diff)
--- src/sys/fs/ntfs/ntfs_ihash.c 2009/03/14 15:36:22 1.8
+++ src/sys/fs/ntfs/ntfs_ihash.c 2009/03/15 17:15:58 1.9
@@ -1,4 +1,4 @@
-/*	$NetBSD: ntfs_ihash.c,v 1.8 2009/03/14 15:36:22 dsl Exp $	*/
+/*	$NetBSD: ntfs_ihash.c,v 1.9 2009/03/15 17:15:58 cegger Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993, 1995
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_ihash.c,v 1.8 2009/03/14 15:36:22 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_ihash.c,v 1.9 2009/03/15 17:15:58 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -60,7 +60,7 @@
  * Initialize inode hash table.
  */
 void
-ntfs_nthashinit()
+ntfs_nthashinit(void)
 {
 	mutex_init(&ntfs_hashlock, MUTEX_DEFAULT, IPL_NONE);
 	mutex_init(&ntfs_nthash_lock, MUTEX_DEFAULT, IPL_NONE);
@@ -72,7 +72,7 @@
  */
 
 void
-ntfs_nthashreinit()
+ntfs_nthashreinit(void)
 {
 	struct ntnode *ip;
 	struct nthashhead *oldhash, *hash;
@@ -102,7 +102,7 @@
  * on NetBSD.
  */
 void
-ntfs_nthashdone()
+ntfs_nthashdone(void)
 {
 	hashdone(ntfs_nthashtbl, HASH_LIST, ntfs_nthash);
 	mutex_destroy(&ntfs_hashlock);

cvs diff -r1.40 -r1.41 src/sys/fs/ntfs/ntfs_subr.c (expand / switch to context diff)
--- src/sys/fs/ntfs/ntfs_subr.c 2009/03/14 21:04:24 1.40
+++ src/sys/fs/ntfs/ntfs_subr.c 2009/03/15 17:15:58 1.41
@@ -1,4 +1,4 @@
-/*	$NetBSD: ntfs_subr.c,v 1.40 2009/03/14 21:04:24 dsl Exp $	*/
+/*	$NetBSD: ntfs_subr.c,v 1.41 2009/03/15 17:15:58 cegger Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko (semenu@FreeBSD.org)
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.40 2009/03/14 21:04:24 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.41 2009/03/15 17:15:58 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2011,7 +2011,7 @@
  * later work
  */
 void
-ntfs_toupper_init()
+ntfs_toupper_init(void)
 {
 	ntfs_toupper_tab = (wchar *) NULL;
 	mutex_init(&ntfs_toupper_lock, MUTEX_DEFAULT, IPL_NONE);
@@ -2062,7 +2062,7 @@
  * tied by toupper table
  */
 void
-ntfs_toupper_unuse()
+ntfs_toupper_unuse(void)
 {
 	/* get exclusive access */
 	mutex_enter(&ntfs_toupper_lock);

cvs diff -r1.75 -r1.76 src/sys/fs/ntfs/ntfs_vfsops.c (expand / switch to context diff)
--- src/sys/fs/ntfs/ntfs_vfsops.c 2009/03/14 15:36:22 1.75
+++ src/sys/fs/ntfs/ntfs_vfsops.c 2009/03/15 17:15:58 1.76
@@ -1,4 +1,4 @@
-/*	$NetBSD: ntfs_vfsops.c,v 1.75 2009/03/14 15:36:22 dsl Exp $	*/
+/*	$NetBSD: ntfs_vfsops.c,v 1.76 2009/03/15 17:15:58 cegger Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.75 2009/03/14 15:36:22 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.76 2009/03/15 17:15:58 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -92,7 +92,7 @@
 static struct sysctllog *ntfs_sysctl_log;
 
 static int
-ntfs_mountroot()
+ntfs_mountroot(void)
 {
 	struct mount *mp;
 	struct lwp *l = curlwp;	/* XXX */
@@ -127,7 +127,7 @@
 }
 
 static void
-ntfs_init()
+ntfs_init(void)
 {
 
 	malloc_type_attach(M_NTFSMNT);
@@ -143,13 +143,13 @@
 }
 
 static void
-ntfs_reinit()
+ntfs_reinit(void)
 {
 	ntfs_nthashreinit();
 }
 
 static void
-ntfs_done()
+ntfs_done(void)
 {
 	ntfs_nthashdone();
 	malloc_type_detach(M_NTFSMNT);