summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-06-19 06:06:34 +0000
committerdholland <dholland@NetBSD.org>2012-06-19 06:06:34 +0000
commitd057eeac074787c5e176b9fae32be451dbc45cb3 (patch)
tree00794039ad34d1bb4c839c0f407611f0dc5cdec3 /libexec
parent1056087c25b196a98ffb0992884c8e37796ce85d (diff)
Pass WARNS=5
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/cmds.c8
-rw-r--r--libexec/ftpd/ftpd.c6
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c12
3 files changed, 12 insertions, 14 deletions
diff --git a/libexec/ftpd/cmds.c b/libexec/ftpd/cmds.c
index f6b9d97a828..e3d12ee650d 100644
--- a/libexec/ftpd/cmds.c
+++ b/libexec/ftpd/cmds.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.30 2009/03/15 07:48:36 lukem Exp $ */
+/* $NetBSD: cmds.c,v 1.31 2012/06/19 06:06:34 dholland Exp $ */
/*
* Copyright (c) 1999-2009 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: cmds.c,v 1.30 2009/03/15 07:48:36 lukem Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.31 2012/06/19 06:06:34 dholland Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -845,9 +845,7 @@ replydirname(const char *name, const char *message)
}
static void
-discover_path(last_path, new_path)
- char *last_path;
- const char *new_path;
+discover_path(char *last_path, const char *new_path)
{
char tp[MAXPATHLEN + 1] = "";
char tq[MAXPATHLEN + 1] = "";
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 84db9dd4b73..113f868f1d1 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpd.c,v 1.197 2011/09/16 16:13:17 plunky Exp $ */
+/* $NetBSD: ftpd.c,v 1.198 2012/06/19 06:06:34 dholland Exp $ */
/*
* Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@ __COPYRIGHT("@(#) Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994\
#if 0
static char sccsid[] = "@(#)ftpd.c 8.5 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: ftpd.c,v 1.197 2011/09/16 16:13:17 plunky Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.198 2012/06/19 06:06:34 dholland Exp $");
#endif
#endif /* not lint */
@@ -2938,7 +2938,7 @@ statxfer(void)
* by setting transflag to 0. (c.f., "ABOR").
*/
static int
-handleoobcmd()
+handleoobcmd(void)
{
char *cp;
int ret;
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index 4ec18d92c3e..003cbd67429 100644
--- a/libexec/rpc.rstatd/rstat_proc.c
+++ b/libexec/rpc.rstatd/rstat_proc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rstat_proc.c,v 1.46 2011/09/16 16:13:17 plunky Exp $ */
+/* $NetBSD: rstat_proc.c,v 1.47 2012/06/19 06:09:36 dholland Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -35,7 +35,7 @@
static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro";
static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";
#else
-__RCSID("$NetBSD: rstat_proc.c,v 1.46 2011/09/16 16:13:17 plunky Exp $");
+__RCSID("$NetBSD: rstat_proc.c,v 1.47 2012/06/19 06:09:36 dholland Exp $");
#endif
#endif
@@ -131,7 +131,7 @@ static int stat_is_init = 0;
#endif
void
-stat_init()
+stat_init(void)
{
stat_is_init = 1;
setup();
@@ -306,7 +306,7 @@ updatestat(int dummy)
}
void
-setup_kd_once()
+setup_kd_once(void)
{
char errbuf[_POSIX2_LINE_MAX];
kfd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf);
@@ -317,7 +317,7 @@ setup_kd_once()
}
void
-setup()
+setup(void)
{
struct ifnet ifnet;
long off;
@@ -361,7 +361,7 @@ setup()
* returns true if have a disk
*/
int
-havedisk()
+havedisk(void)
{
return ndrive != 0;
}