#
112212 |
|
13-Mar-2003 |
robert |
- 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
|
#
34447 |
|
10-Mar-1998 |
jb |
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.
|