diff options
author | charnier <charnier@FreeBSD.org> | 1997-06-30 06:50:07 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-06-30 06:50:07 +0000 |
commit | 761cfebef56ccc107e35dc1334e596fdbc07bed2 (patch) | |
tree | 36fabf60437d38960a2f8a4263a01f709d41427c /usr.bin/du/du.c | |
parent | 136480890da36aea64796e7d6ba40d1d694eaaed (diff) | |
download | FreeBSD-src-761cfebef56ccc107e35dc1334e596fdbc07bed2.zip FreeBSD-src-761cfebef56ccc107e35dc1334e596fdbc07bed2.tar.gz |
Document -k flag.
Diffstat (limited to 'usr.bin/du/du.c')
-rw-r--r-- | usr.bin/du/du.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index c4c564d..995860b 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -57,7 +57,7 @@ static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95"; #include <unistd.h> int linkchk __P((FTSENT *)); -void usage __P((void)); +static void usage __P((void)); int main(argc, argv) @@ -231,17 +231,16 @@ linkchk(p) if (nfiles == maxfiles && (files = realloc((char *)files, (u_int)(sizeof(ID) * (maxfiles += 128)))) == NULL) - err(1, ""); + err(1, "can't allocate memory"); files[nfiles].inode = ino; files[nfiles].dev = dev; ++nfiles; return (0); } -void +static void usage() { - (void)fprintf(stderr, "usage: du [-H | -L | -P] [-a | -s | -d depth] [-k] [-x] [file ...]\n"); exit(1); |