summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-05-20 08:51:33 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-05-20 08:51:33 +0000
commitfd2b06e75dd3d1ac2f7f45fe344e3e2aa577d724 (patch)
treec1c06062fa4c36a6039938b3c5a398dc62ca5901 /bin
parentd7243a34c69a55b6383aad474f4954018738c247 (diff)
exit and the progname
Diffstat (limited to 'bin')
-rw-r--r--bin/rmdir/rmdir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/rmdir/rmdir.c b/bin/rmdir/rmdir.c
index bf2bfb76dff..86708cc9325 100644
--- a/bin/rmdir/rmdir.c
+++ b/bin/rmdir/rmdir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rmdir.c,v 1.3 1996/08/02 12:41:07 deraadt Exp $ */
+/* $OpenBSD: rmdir.c,v 1.4 2001/05/20 08:51:32 mickey Exp $ */
/* $NetBSD: rmdir.c,v 1.13 1995/03/21 09:08:31 cgd Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rmdir.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: rmdir.c,v 1.3 1996/08/02 12:41:07 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rmdir.c,v 1.4 2001/05/20 08:51:32 mickey Exp $";
#endif
#endif /* not lint */
@@ -100,7 +100,7 @@ main(argc, argv)
errors |= rm_path(*argv);
}
- exit(errors);
+ return (errors);
}
int
@@ -127,7 +127,7 @@ rm_path(path)
void
usage()
{
-
- (void)fprintf(stderr, "usage: rmdir [-p] directory ...\n");
+ extern char *__progname;
+ fprintf(stderr, "usage: %s [-p] directory ...\n", __progname);
exit(1);
}