summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-07 05:53:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-05-07 05:53:10 +0000
commite745029beb7a20b1f33524addf1e089a5a36eca4 (patch)
tree83a268885498a4fd3e5b6a2b9bef889058d98f0d
parenteb334e057795326313fa55a5f4cc4d0acb6f6f14 (diff)
pretty up output
-rw-r--r--usr.bin/showmount/showmount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/showmount/showmount.c b/usr.bin/showmount/showmount.c
index 953036b0af8..a43a662dce6 100644
--- a/usr.bin/showmount/showmount.c
+++ b/usr.bin/showmount/showmount.c
@@ -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);
}