Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec Pass WARNS=5
details: https://anonhg.NetBSD.org/src/rev/5ae446af7ab4
branches: trunk
changeset: 779788:5ae446af7ab4
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Jun 19 06:06:34 2012 +0000
description:
Pass WARNS=5
diffstat:
libexec/ftpd/cmds.c | 8 +++-----
libexec/ftpd/ftpd.c | 6 +++---
libexec/rpc.rstatd/rstat_proc.c | 12 ++++++------
3 files changed, 12 insertions(+), 14 deletions(-)
diffs (110 lines):
diff -r c9591a10b874 -r 5ae446af7ab4 libexec/ftpd/cmds.c
--- a/libexec/ftpd/cmds.c Tue Jun 19 05:46:08 2012 +0000
+++ b/libexec/ftpd/cmds.c Tue Jun 19 06:06:34 2012 +0000
@@ -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 @@
}
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 -r c9591a10b874 -r 5ae446af7ab4 libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c Tue Jun 19 05:46:08 2012 +0000
+++ b/libexec/ftpd/ftpd.c Tue Jun 19 06:06:34 2012 +0000
@@ -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 @@
#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 @@
* by setting transflag to 0. (c.f., "ABOR").
*/
static int
-handleoobcmd()
+handleoobcmd(void)
{
char *cp;
int ret;
diff -r c9591a10b874 -r 5ae446af7ab4 libexec/rpc.rstatd/rstat_proc.c
--- a/libexec/rpc.rstatd/rstat_proc.c Tue Jun 19 05:46:08 2012 +0000
+++ b/libexec/rpc.rstatd/rstat_proc.c Tue Jun 19 06:06:34 2012 +0000
@@ -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 @@
#endif
void
-stat_init()
+stat_init(void)
{
stat_is_init = 1;
setup();
@@ -306,7 +306,7 @@
}
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 @@
}
void
-setup()
+setup(void)
{
struct ifnet ifnet;
long off;
@@ -361,7 +361,7 @@
* returns true if have a disk
*/
int
-havedisk()
+havedisk(void)
{
return ndrive != 0;
}
Home |
Main Index |
Thread Index |
Old Index