Remove unused #include. Statisize usage().

This commit is contained in:
Philippe Charnier 1997-09-15 06:32:01 +00:00
parent 825cbd5821
commit 14b374a5c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29448
2 changed files with 9 additions and 6 deletions

View File

@ -43,7 +43,7 @@
.Op Ar command
.Sh DESCRIPTION
The
.Nm chroot
.Nm
command changes its root directory to the supplied directory
.Ar newroot
and exec's
@ -75,6 +75,6 @@ is used.
.Xr environ 7
.Sh HISTORY
The
.Nm chroot
.Nm
utility first appeared in
.Bx 4.4 .

View File

@ -32,26 +32,29 @@
*/
#ifndef lint
static char copyright[] =
static const char copyright[] =
"@(#) Copyright (c) 1988, 1993\n\
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)chroot.c 8.1 (Berkeley) 6/9/93";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <sys/types.h>
#include <err.h>
#include <errno.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
void usage __P((void));
static void usage __P((void));
int
main(argc, argv)
@ -88,7 +91,7 @@ main(argc, argv)
/* NOTREACHED */
}
void
static void
usage()
{
(void)fprintf(stderr, "usage: chroot newroot [command]\n");