diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 06:22:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 06:22:16 +0000 |
commit | 4e11c004395b80e095e2512274ee143f75b923f2 (patch) | |
tree | 7dd90385c7fc68e56457d473631e3db8896270d2 /sbin/mount_nfs | |
parent | 5dd7b59250a41ff74475db0fc6290dc6b029d96d (diff) |
ansification
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r-- | sbin/mount_nfs/getmntopts.c | 9 | ||||
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 28 |
2 files changed, 13 insertions, 24 deletions
diff --git a/sbin/mount_nfs/getmntopts.c b/sbin/mount_nfs/getmntopts.c index d65bcc6d469..d75e1e52875 100644 --- a/sbin/mount_nfs/getmntopts.c +++ b/sbin/mount_nfs/getmntopts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getmntopts.c,v 1.2 2003/06/02 20:06:15 millert Exp $ */ +/* $OpenBSD: getmntopts.c,v 1.3 2003/06/11 06:22:14 deraadt Exp $ */ /*- * Copyright (c) 1994 @@ -47,11 +47,8 @@ static char sccsid[] = "@(#)getmntopts.c 8.3 (Berkeley) 3/29/95"; int getmnt_silent = 0; void -getmntopts(options, m0, flagp, altflagp) - const char *options; - const struct mntopt *m0; - int *flagp; - int *altflagp; +getmntopts(const char *options, const struct mntopt *m0, int *flagp, + int *altflagp) { const struct mntopt *m; int negative; 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); } |