summaryrefslogtreecommitdiff
path: root/sbin/mount_portal/mount_portal.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 06:22:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 06:22:16 +0000
commit4e11c004395b80e095e2512274ee143f75b923f2 (patch)
tree7dd90385c7fc68e56457d473631e3db8896270d2 /sbin/mount_portal/mount_portal.c
parent5dd7b59250a41ff74475db0fc6290dc6b029d96d (diff)
ansification
Diffstat (limited to 'sbin/mount_portal/mount_portal.c')
-rw-r--r--sbin/mount_portal/mount_portal.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/sbin/mount_portal/mount_portal.c b/sbin/mount_portal/mount_portal.c
index 05ba901ad05..572b2359f6b 100644
--- a/sbin/mount_portal/mount_portal.c
+++ b/sbin/mount_portal/mount_portal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_portal.c,v 1.23 2003/06/02 20:06:16 millert Exp $ */
+/* $OpenBSD: mount_portal.c,v 1.24 2003/06/11 06:22:14 deraadt Exp $ */
/* $NetBSD: mount_portal.c,v 1.8 1996/04/13 01:31:54 jtc Exp $ */
/*
@@ -43,7 +43,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_portal.c 8.6 (Berkeley) 4/26/95";
#else
-static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.23 2003/06/02 20:06:16 millert Exp $";
+static char rcsid[] = "$OpenBSD: mount_portal.c,v 1.24 2003/06/11 06:22:14 deraadt Exp $";
#endif
#endif /* not lint */
@@ -80,8 +80,7 @@ static void usage(void);
static volatile sig_atomic_t readcf; /* Set when SIGHUP received */
static void
-sigchld(sig)
- int sig;
+sigchld(int sig)
{
int save_errno = errno;
struct syslog_data sdata = SYSLOG_DATA_INIT;
@@ -95,16 +94,14 @@ sigchld(sig)
}
static void
-sighup(sig)
- int sig;
+sighup(int sig)
{
readcf = 1;
}
static void
-sigterm(sig)
- int sig;
+sigterm(int sig)
{
struct syslog_data sdata = SYSLOG_DATA_INIT;
@@ -115,9 +112,7 @@ sigterm(sig)
}
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
struct portal_args args;
struct sockaddr_un un;
@@ -296,7 +291,7 @@ main(argc, argv)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: %s [-o options] config mount-point\n", __progname);