summaryrefslogtreecommitdiff
path: root/libexec/rpc.rstatd
diff options
context:
space:
mode:
authorfvdl <fvdl@NetBSD.org>2000-06-03 18:58:22 +0000
committerfvdl <fvdl@NetBSD.org>2000-06-03 18:58:22 +0000
commit3ff53c6c243f21d99816c9eaaf2eeb0d9c45de5d (patch)
tree4b4afe0ddff68f3155bb70f849ec007511cde16a /libexec/rpc.rstatd
parent1e12f48a8194d4ff43730387aae6719b56fcd1f8 (diff)
ANSIfy function prototypes and definitions.
Diffstat (limited to 'libexec/rpc.rstatd')
-rw-r--r--libexec/rpc.rstatd/rstat_proc.c51
-rw-r--r--libexec/rpc.rstatd/rstatd.c17
2 files changed, 25 insertions, 43 deletions
diff --git a/libexec/rpc.rstatd/rstat_proc.c b/libexec/rpc.rstatd/rstat_proc.c
index 90532c74c45..1836f39c0a8 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.32 2000/06/03 18:43:10 fvdl Exp $ */
+/* $NetBSD: rstat_proc.c,v 1.33 2000/06/03 18:58:22 fvdl 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.32 2000/06/03 18:43:10 fvdl Exp $");
+__RCSID("$NetBSD: rstat_proc.c,v 1.33 2000/06/03 18:58:22 fvdl Exp $");
#endif
#endif
@@ -120,15 +120,15 @@ union {
struct statstime s3;
} stats_all;
-extern void dkreadstats __P((void));
-extern int dkinit __P((int, gid_t));
+extern void dkreadstats(void);
+extern int dkinit(int, gid_t);
-void updatestat __P((int));
-void setup __P((void));
-void setup_kd_once __P((void));
-void stat_init __P((void));
-int havedisk __P((void));
-void rstat_service __P((struct svc_req *, SVCXPRT *));
+void updatestat(int);
+void setup(void);
+void setup_kd_once(void);
+void stat_init(void);
+int havedisk(void);
+void rstat_service(struct svc_req *, SVCXPRT *);
static int stat_is_init = 0;
@@ -147,9 +147,7 @@ stat_init()
}
statstime *
-rstatproc_stats_3_svc(arg, rqstp)
- void *arg;
- struct svc_req *rqstp;
+rstatproc_stats_3_svc(void *arg, struct svc_req *rqstp)
{
if (!stat_is_init)
stat_init();
@@ -158,9 +156,7 @@ rstatproc_stats_3_svc(arg, rqstp)
}
statsswtch *
-rstatproc_stats_2_svc(arg, rqstp)
- void *arg;
- struct svc_req *rqstp;
+rstatproc_stats_2_svc(void *arg, struct svc_req *rqstp)
{
if (!stat_is_init)
stat_init();
@@ -170,9 +166,7 @@ rstatproc_stats_2_svc(arg, rqstp)
}
stats *
-rstatproc_stats_1_svc(arg, rqstp)
- void *arg;
- struct svc_req *rqstp;
+rstatproc_stats_1_svc(void *arg, struct svc_req *rqstp)
{
if (!stat_is_init)
stat_init();
@@ -182,9 +176,7 @@ rstatproc_stats_1_svc(arg, rqstp)
}
u_int *
-rstatproc_havedisk_3_svc(arg, rqstp)
- void *arg;
- struct svc_req *rqstp;
+rstatproc_havedisk_3_svc(void *arg, struct svc_req *rqstp)
{
static u_int have;
@@ -196,24 +188,19 @@ rstatproc_havedisk_3_svc(arg, rqstp)
}
u_int *
-rstatproc_havedisk_2_svc(arg, rqstp)
- void *arg;
- struct svc_req *rqstp;
+rstatproc_havedisk_2_svc(void *arg, struct svc_req *rqstp)
{
return (rstatproc_havedisk_3_svc(arg, rqstp));
}
u_int *
-rstatproc_havedisk_1_svc(arg, rqstp)
- void *arg;
- struct svc_req *rqstp;
+rstatproc_havedisk_1_svc(void *arg, struct svc_req *rqstp)
{
return (rstatproc_havedisk_3_svc(arg, rqstp));
}
void
-updatestat(dummy)
- int dummy;
+updatestat(int dummy)
{
long off;
int i;
@@ -386,9 +373,7 @@ havedisk()
}
void
-rstat_service(rqstp, transp)
- struct svc_req *rqstp;
- SVCXPRT *transp;
+rstat_service(struct svc_req *rqstp, SVCXPRT *transp)
{
union {
int fill;
diff --git a/libexec/rpc.rstatd/rstatd.c b/libexec/rpc.rstatd/rstatd.c
index 88380c3ce11..d2ea071faf2 100644
--- a/libexec/rpc.rstatd/rstatd.c
+++ b/libexec/rpc.rstatd/rstatd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rstatd.c,v 1.11 2000/06/03 18:48:24 fvdl Exp $ */
+/* $NetBSD: rstatd.c,v 1.12 2000/06/03 18:58:22 fvdl Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rstatd.c,v 1.11 2000/06/03 18:48:24 fvdl Exp $");
+__RCSID("$NetBSD: rstatd.c,v 1.12 2000/06/03 18:58:22 fvdl Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -49,16 +49,15 @@ __RCSID("$NetBSD: rstatd.c,v 1.11 2000/06/03 18:48:24 fvdl Exp $");
#include <stdlib.h>
#include <rpcsvc/rstat.h>
-extern void rstat_service __P((struct svc_req *, SVCXPRT *));
-void cleanup __P((int));
-int main __P((int, char *[]));
+extern void rstat_service(struct svc_req *, SVCXPRT *);
+void cleanup(int);
+int main(int, char *[]);
int from_inetd = 1; /* started from inetd ? */
int closedown = 20; /* how long to wait before going dormant */
void
-cleanup(dummy)
- int dummy;
+cleanup(int dummy)
{
(void) rpcb_unset(RSTATPROG, RSTATVERS_TIME, NULL);
(void) rpcb_unset(RSTATPROG, RSTATVERS_SWTCH, NULL);
@@ -67,9 +66,7 @@ cleanup(dummy)
}
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
SVCXPRT *transp;
struct sockaddr_in from;