From 9088258d6d6f216c3b0f893a051a5a333d3f86b5 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Tue, 20 Mar 2007 18:50:12 +0000 Subject: sync usage(); from Igor Sobrado i also ripped some kerberos ifdefs out of usage(), which is ok biorn --- bin/rcp/rcp.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'bin/rcp') diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c index c3f71b240d2..afa93d441b2 100644 --- a/bin/rcp/rcp.c +++ b/bin/rcp/rcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcp.c,v 1.45 2006/05/17 12:44:16 markus Exp $ */ +/* $OpenBSD: rcp.c,v 1.46 2007/03/20 18:50:11 jmc Exp $ */ /* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94"; #else -static const char rcsid[] = "$OpenBSD: rcp.c,v 1.45 2006/05/17 12:44:16 markus Exp $"; +static const char rcsid[] = "$OpenBSD: rcp.c,v 1.46 2007/03/20 18:50:11 jmc Exp $"; #endif #endif /* not lint */ @@ -871,16 +871,10 @@ response(void) void usage(void) { -#ifdef KERBEROS - (void)fprintf(stderr, "usage: %s [-Kpx] [-k realm] f1 f2\n", - __progname); - (void)fprintf(stderr, " %s [-Kprx] [-k realm] f1 ... fn directory\n", - __progname); -#else (void)fprintf(stderr, - "usage: %s [-p] f1 f2; or: rcp [-pr] f1 ... fn directory\n", - __progname); -#endif + "usage: %s [-p] file1 file2\n" + " %s [-pr] file ... directory\n", + __progname, __progname); exit(1); } -- cgit v1.2.3