diff options
author | charnier <charnier@FreeBSD.org> | 1997-09-15 06:32:01 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-09-15 06:32:01 +0000 |
commit | 0976cf0f14ed85ba3376dce76f5d7d518ab5491c (patch) | |
tree | 27698dc49f0444b9f91e5f08b5f0608b206bc70b /usr.sbin/chroot | |
parent | 4e83d999c4f34f75aae4c3e076428818dc4da625 (diff) | |
download | FreeBSD-src-0976cf0f14ed85ba3376dce76f5d7d518ab5491c.zip FreeBSD-src-0976cf0f14ed85ba3376dce76f5d7d518ab5491c.tar.gz |
Remove unused #include. Statisize usage().
Diffstat (limited to 'usr.sbin/chroot')
-rw-r--r-- | usr.sbin/chroot/chroot.8 | 4 | ||||
-rw-r--r-- | usr.sbin/chroot/chroot.c | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/usr.sbin/chroot/chroot.8 b/usr.sbin/chroot/chroot.8 index cf77068..607cfe3 100644 --- a/usr.sbin/chroot/chroot.8 +++ b/usr.sbin/chroot/chroot.8 @@ -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 . diff --git a/usr.sbin/chroot/chroot.c b/usr.sbin/chroot/chroot.c index db60a34..4049c6c 100644 --- a/usr.sbin/chroot/chroot.c +++ b/usr.sbin/chroot/chroot.c @@ -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"); |