From b815579bddb60c321388b072007eefded1cfda65 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 21 Dec 2009 00:02:13 +0100 Subject: [PATCH] Silence -Wold-style-definition in a number of places in the kernel. --- sys/kern/kern_shutdown.c | 2 +- sys/vfs/devfs/devfs_core.c | 2 +- sys/vfs/msdosfs/msdosfs_conv.c | 20 +++++--------------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 5054440077..b50869f826 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -817,7 +817,7 @@ set_dumper(struct dumperinfo *di) } void -dumpsys() +dumpsys(void) { #if defined (_KERNEL_VIRTUAL) /* VKERNELs don't support dumps */ diff --git a/sys/vfs/devfs/devfs_core.c b/sys/vfs/devfs/devfs_core.c index 5703c4fff2..ecd6edfb80 100644 --- a/sys/vfs/devfs/devfs_core.c +++ b/sys/vfs/devfs/devfs_core.c @@ -881,7 +881,7 @@ devfs_msg_autofree_reply(lwkt_port_t port, lwkt_msg_t msg) * devfs_msg_get allocates a new devfs msg and returns it. */ devfs_msg_t -devfs_msg_get() +devfs_msg_get(void) { return objcache_get(devfs_msg_cache, M_WAITOK); } diff --git a/sys/vfs/msdosfs/msdosfs_conv.c b/sys/vfs/msdosfs/msdosfs_conv.c index f66efceb48..514a06a8a1 100644 --- a/sys/vfs/msdosfs/msdosfs_conv.c +++ b/sys/vfs/msdosfs/msdosfs_conv.c @@ -983,12 +983,8 @@ find_lcode(u_int16_t code, u_int16_t *u2w) * Returns the checksum or -1 if no match */ int -winChkName(nbp, un, unlen, chksum, pmp) - struct mbnambuf *nbp; - const u_char *un; - size_t unlen; - int chksum; - struct msdosfsmount *pmp; +winChkName(struct mbnambuf *nbp, const u_char *un, size_t unlen, int chksum, + struct msdosfsmount *pmp) { size_t len; u_int16_t c1, c2; @@ -1069,11 +1065,8 @@ win2unixchr(u_int16_t wc, struct msdosfsmount *pmp) * Returns the checksum or -1 if impossible */ int -win2unixfn(nbp, wep, chksum, pmp) - struct mbnambuf *nbp; - struct winentry *wep; - int chksum; - struct msdosfsmount *pmp; +win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum, + struct msdosfsmount *pmp) { u_int8_t *cp; u_int8_t *np, name[WIN_CHARS * 2 + 1]; @@ -1174,10 +1167,7 @@ winChksum(u_int8_t *name) * Determine the number of slots necessary for Win95 names */ int -winSlotCnt(un, unlen, pmp) - const u_char *un; - int unlen; - struct msdosfsmount *pmp; +winSlotCnt(const u_char *un, int unlen, struct msdosfsmount *pmp) { size_t wlen; char wn[WIN_MAXLEN * 2 + 1], *wnp; -- 2.11.4.GIT