diff options
author | jb <jb@FreeBSD.org> | 1998-03-10 05:03:49 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-03-10 05:03:49 +0000 |
commit | 3993727e630e0d7a6b7efef91fa8eb08cf4b62bf (patch) | |
tree | 5a3faab89b17f643a7a86dfb08ce976dd9534067 /usr.bin/cksum/extern.h | |
parent | 757dddeeb5cd4b11dbbab454753dcdef1458bb26 (diff) | |
download | FreeBSD-src-3993727e630e0d7a6b7efef91fa8eb08cf4b62bf.zip FreeBSD-src-3993727e630e0d7a6b7efef91fa8eb08cf4b62bf.tar.gz |
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.
Diffstat (limited to 'usr.bin/cksum/extern.h')
-rw-r--r-- | usr.bin/cksum/extern.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/cksum/extern.h b/usr.bin/cksum/extern.h index 2d43490..cee3f24 100644 --- a/usr.bin/cksum/extern.h +++ b/usr.bin/cksum/extern.h @@ -36,11 +36,11 @@ #include <sys/cdefs.h> __BEGIN_DECLS -int crc __P((int, unsigned long *, unsigned long *)); -void pcrc __P((char *, unsigned long, unsigned long)); -void psum1 __P((char *, unsigned long, unsigned long)); -void psum2 __P((char *, unsigned long, unsigned long)); -int csum1 __P((int, unsigned long *, unsigned long *)); -int csum2 __P((int, unsigned long *, unsigned long *)); -int crc32 __P((int, unsigned long *, unsigned long *)); +int crc __P((int, u_int32_t *, u_int32_t *)); +void pcrc __P((char *, u_int32_t, u_int32_t)); +void psum1 __P((char *, u_int32_t, u_int32_t)); +void psum2 __P((char *, u_int32_t, u_int32_t)); +int csum1 __P((int, u_int32_t *, u_int32_t *)); +int csum2 __P((int, u_int32_t *, u_int32_t *)); +int crc32 __P((int, u_int32_t *, u_int32_t *)); __END_DECLS |