From: deraadt Date: Tue, 7 May 1996 05:53:09 +0000 (+0000) Subject: pretty up output X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f7a2a6e4889985103e2f0b14fc5f48a23757e21a;p=openbsd pretty up output --- 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 @@ -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); }