summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/yp_main.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-02-06 15:26:07 +0000
committerdes <des@FreeBSD.org>2002-02-06 15:26:07 +0000
commitd7b064e238d98e1c9942cfb6e53c0767893310b1 (patch)
tree9c2a46d61c0b1ec2538854e870b6861acfd2ee7a /usr.sbin/ypserv/yp_main.c
parent0f2cb9b020b907000a28323fc57a82fdb7d6626d (diff)
downloadFreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.zip
FreeBSD-src-d7b064e238d98e1c9942cfb6e53c0767893310b1.tar.gz
ANSIfy and remove some dead code.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.sbin/ypserv/yp_main.c')
-rw-r--r--usr.sbin/ypserv/yp_main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ypserv/yp_main.c b/usr.sbin/ypserv/yp_main.c
index c31e3fd..e7f6b0b 100644
--- a/usr.sbin/ypserv/yp_main.c
+++ b/usr.sbin/ypserv/yp_main.c
@@ -101,7 +101,7 @@ void _msgout(char* msg)
pid_t yp_pid;
static void
-yp_svc_run()
+yp_svc_run(void)
{
#ifdef FD_SETSIZE
fd_set readfds;
@@ -152,14 +152,15 @@ yp_svc_run()
}
}
-static void unregister()
+static void
+unregister(void)
{
(void) pmap_unset(YPPROG, YPVERS);
(void) pmap_unset(YPPROG, YPOLDVERS);
}
-static void reaper(sig)
- int sig;
+static void
+reaper(int sig)
{
int status;
int saved_errno;
@@ -186,7 +187,8 @@ static void reaper(sig)
return;
}
-static void usage()
+static void
+usage(void)
{
fprintf(stderr, "usage: ypserv [-h] [-d] [-n] [-p path]\n");
exit(1);
@@ -223,9 +225,7 @@ closedown(int sig)
}
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
register SVCXPRT *transp = NULL;
int sock;
OpenPOWER on IntegriCloud