Put includes in alphabetical order. various cosmetics.

This commit is contained in:
Philippe Charnier 1997-09-15 06:33:52 +00:00
parent 14b374a5c4
commit 55c5024e9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29449
2 changed files with 18 additions and 17 deletions

View File

@ -1,7 +1,7 @@
.\" Copyright (c) 1997 Robert Nordier
.\" All rights reserved.
.\"
.\" $Id: ckdist.1,v 1.2 1997/01/20 16:47:04 rnordier Exp $
.\" $Id: ckdist.1,v 1.1.1.1 1997/01/21 12:58:53 jkh Exp $
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@ -36,10 +36,10 @@
.Bq Fl d Ar dir
.Bq Fl n Ar name
.Bq Fl t Ar type
.Ar file ...
.Ar
.Sh DESCRIPTION
The
.Nm ckdist
.Nm
utility reads "checksum" files (which are assumed to specify components
of a software distribution) and verifies the integrity of the
distribution by validating the checksum of each component file.
@ -75,8 +75,8 @@ Look for distribution components in the directory
.It Fl n Ar name
Access distribution components using the filename
.Ar name .
(When accessing .inf file components, append the appropriate
extension to the filename.)
When accessing .inf file components, append the appropriate
extension to the filename.
.It Fl t Ar type
Assume that all specified checksum files are of the format
.Ar type ,
@ -92,5 +92,5 @@ a distribution, and 2 if usage errors, inaccessible input files, or
other system errors were encountered.
.Sh NOTES
Both BSD and DOS versions of
.Nm ckdist
.Nm
are available.

View File

@ -2,8 +2,6 @@
* Copyright (c) 1997 Robert Nordier
* All rights reserved.
*
* $Id: ckdist.c,v 1.6 1997/01/20 16:47:06 rnordier Exp $
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@ -27,18 +25,22 @@
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef lint
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <fts.h>
#include <err.h>
#include <md5.h>
#include <errno.h>
#include <fcntl.h>
#include <fts.h>
#include <md5.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
extern int crc(int fd, u_long * cval, u_long * clen);
@ -131,7 +133,7 @@ main(int argc, char *argv[])
if (stat(opt_dir, &sb))
err(2, opt_dir);
if (!S_ISDIR(sb.st_mode))
errx(2, "%s: Not a directory", opt_dir);
errx(2, "%s: not a directory", opt_dir);
}
rval = 0;
do {
@ -433,7 +435,6 @@ static void
usage(void)
{
fprintf(stderr,
"usage: ckdist [-airsx] [-d dir] [-n name] [-t type] file"
" ...\n");
"usage: ckdist [-airsx] [-d dir] [-n name] [-t type] file ...\n");
exit(2);
}