Commit Graph

11 Commits

Author SHA1 Message Date
Xin LI
821df508e8 Revert most part of 200420 as requested, as more review and polish is
needed.
2009-12-13 03:14:06 +00:00
Xin LI
6f2d322192 Remove unneeded header includes from usr.bin/ except contributed code.
Tested with:	make universe
2009-12-11 23:35:38 +00:00
Robert Drehmel
60b588eb94 - For variables holding offset values, use off_t rather than
int, long int or u_int32_t.  This changes the interface of
   all the CRC calculation and output functions from cksum.
 - Print variables of type off_t as intmax_t using a cast and %jd.
 - Use the standardized uint32_t type instead of u_int32_t.
   To have uint32_t defined, include <stdint.h> where necessary.
Style(9):
 - Move #include directives where they belong (esp. crc32.c).
 - Add empty lines between #include directives of system headers,
   standard library headers and local headers.
 - Test a pointer value against NULL.
 - Put a space after the return keyword.

PR:		bin/48424
2003-03-13 23:32:28 +00:00
David Malone
f2e8e0dad7 ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
David E. O'Brien
e026a48c34 Consistently use FBSDID 2002-06-30 05:25:07 +00:00
Mark Murray
3fa15ce5d8 WARNS=2 fixup.
kill 'register' keyword.
2001-12-02 12:54:40 +00:00
Philippe Charnier
f74fd6ec7a Minimal use of .Ar and .Nm.
Add section number to .Xr reference.
Add DIAGNOSTICS section name.
Remove unused #includes.
Be consistant in the parsing of flags and add missing option in usage string.
Add rcsid.
1999-12-05 20:03:22 +00:00
Dag-Erling Smørgrav
d26060f2e6 Avoid infinite loop if read() fails consistently.
PR:		misc/7926
Submitted by:	Sergey Potapov <sp@alkor.ru>
1998-09-16 15:53:25 +00:00
John Birrell
4933ffaed9 cksum does a 32-bit checksum, so it needs to use u_int32_t variables,
not u_long. With this change, cksum stops core dumping on alpha (not
a good sign!) and actually computes the same values as it does on i386.
1998-03-10 05:03:49 +00:00
Alexander Langer
d7d1005304 -Wall cleanup. 1997-12-29 00:09:06 +00:00
Poul-Henning Kamp
68d8bb3893 Add canonical 32bit crc as alorithm 3.
PR:		4615
Reviewed by:	phk
Submitted by:	Mike Meyer <mwm@shiva.the-park.com>
1997-09-26 08:02:18 +00:00