fix usage message, clean up RPC error printing.
This commit is contained in:
parent
dc6fe8f1a8
commit
d0ec1c6b6f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: showmount.c,v 1.6 1996/04/01 21:32:19 mark Exp $ */
|
||||
/* $NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1995
|
||||
|
@ -46,7 +46,7 @@ static char copyright[] =
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95";
|
||||
#endif
|
||||
static char rcsid[] = "$NetBSD: showmount.c,v 1.6 1996/04/01 21:32:19 mark Exp $";
|
||||
static char rcsid[] = "$NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $";
|
||||
#endif not lint
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -158,16 +158,16 @@ main(argc, argv)
|
|||
if ((estat = callrpc(host, RPCPROG_MNT, mntvers,
|
||||
RPCMNT_DUMP, xdr_void, (char *)0,
|
||||
xdr_mntdump, (char *)&mntdump)) != 0) {
|
||||
fprintf(stderr, "showmount: Can't do Mountdump rpc: ");
|
||||
clnt_perrno(estat);
|
||||
fprintf(stderr, ": Can't do Mountdump rpc\n");
|
||||
exit(1);
|
||||
}
|
||||
if (rpcs & DOEXPORTS)
|
||||
if ((estat = callrpc(host, RPCPROG_MNT, mntvers,
|
||||
RPCMNT_EXPORT, xdr_void, (char *)0,
|
||||
xdr_exports, (char *)&exports)) != 0) {
|
||||
fprintf(stderr, "showmount: Can't do Exports rpc: ");
|
||||
clnt_perrno(estat);
|
||||
fprintf(stderr, ": Can't do Exports rpc\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -337,7 +337,7 @@ void
|
|||
usage()
|
||||
{
|
||||
|
||||
fprintf(stderr, "usage: showmount [-ade] host\n");
|
||||
fprintf(stderr, "usage: showmount [-ade3] host\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue