summaryrefslogtreecommitdiff
path: root/sbin/mount_nfs/mount_nfs.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_nfs/mount_nfs.c
parent5dd7b59250a41ff74475db0fc6290dc6b029d96d (diff)
ansification
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.c')
-rw-r--r--sbin/mount_nfs/mount_nfs.c28
1 files changed, 10 insertions, 18 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index dd662bee8fd..89b87b2ccdb 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_nfs.c,v 1.31 2003/06/02 20:06:15 millert Exp $ */
+/* $OpenBSD: mount_nfs.c,v 1.32 2003/06/11 06:22:14 deraadt Exp $ */
/* $NetBSD: mount_nfs.c,v 1.12.4.1 1996/05/25 22:48:05 fvdl Exp $ */
/*
@@ -174,9 +174,7 @@ int xdr_dir(XDR *, char *);
int xdr_fh(XDR *, struct nfhret *);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int c;
struct nfs_args *nfsargsp;
@@ -384,9 +382,7 @@ main(argc, argv)
}
int
-getnfsargs(spec, nfsargsp)
- char *spec;
- struct nfs_args *nfsargsp;
+getnfsargs(char *spec, struct nfs_args *nfsargsp)
{
CLIENT *clp;
struct hostent *hp;
@@ -568,17 +564,13 @@ tryagain:
* xdr routines for mount rpc's
*/
int
-xdr_dir(xdrsp, dirp)
- XDR *xdrsp;
- char *dirp;
+xdr_dir(XDR *xdrsp, char *dirp)
{
return (xdr_string(xdrsp, &dirp, RPCMNT_PATHLEN));
}
int
-xdr_fh(xdrsp, np)
- XDR *xdrsp;
- struct nfhret *np;
+xdr_fh(XDR *xdrsp, struct nfhret *np)
{
int i;
long auth, authcnt, authfnd = 0;
@@ -618,12 +610,12 @@ xdr_fh(xdrsp, np)
}
__dead void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: mount_nfs %s\n%s\n%s\n%s\n",
-"[-23PTUbcdilqs] [-a maxreadahead] [-D deadthresh]",
-"\t[-I readdirsize] [-g maxgroups] [-L leaseterm] [-o options]",
-"\t[-R retrycnt] [-r readsize] [-t timeout] [-w writesize] [-x retrans]",
-"\trhost:path node");
+ "[-23PTUbcdilqs] [-a maxreadahead] [-D deadthresh]",
+ "\t[-I readdirsize] [-g maxgroups] [-L leaseterm] [-o options]",
+ "\t[-R retrycnt] [-r readsize] [-t timeout] [-w writesize] [-x retrans]",
+ "\trhost:path node");
exit(1);
}