summaryrefslogtreecommitdiffstats
path: root/usr.bin/cksum/extern.h
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2003-03-13 23:32:28 +0000
committerrobert <robert@FreeBSD.org>2003-03-13 23:32:28 +0000
commit0ddc4b17e7abc81a103d45cac7cff2cf55b25d66 (patch)
tree7ef3584e3d42073e216cde88c80a8ac51e19b5ff /usr.bin/cksum/extern.h
parent2939d783ece3a33d37be2601d6d3937a31059179 (diff)
downloadFreeBSD-src-0ddc4b17e7abc81a103d45cac7cff2cf55b25d66.zip
FreeBSD-src-0ddc4b17e7abc81a103d45cac7cff2cf55b25d66.tar.gz
- 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
Diffstat (limited to 'usr.bin/cksum/extern.h')
-rw-r--r--usr.bin/cksum/extern.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/cksum/extern.h b/usr.bin/cksum/extern.h
index 452a3f9..f2d75de 100644
--- a/usr.bin/cksum/extern.h
+++ b/usr.bin/cksum/extern.h
@@ -37,11 +37,11 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-int crc(int, u_int32_t *, u_int32_t *);
-void pcrc(char *, u_int32_t, u_int32_t);
-void psum1(char *, u_int32_t, u_int32_t);
-void psum2(char *, u_int32_t, u_int32_t);
-int csum1(int, u_int32_t *, u_int32_t *);
-int csum2(int, u_int32_t *, u_int32_t *);
-int crc32(int, u_int32_t *, u_int32_t *);
+int crc(int, uint32_t *, off_t *);
+void pcrc(char *, uint32_t, off_t);
+void psum1(char *, uint32_t, off_t);
+void psum2(char *, uint32_t, off_t);
+int csum1(int, uint32_t *, off_t *);
+int csum2(int, uint32_t *, off_t *);
+int crc32(int, uint32_t *, off_t *);
__END_DECLS
OpenPOWER on IntegriCloud