]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: avoid int64_t and similar types unless they're needed
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Aug 2014 19:07:11 +0000 (12:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 22 Aug 2014 19:07:38 +0000 (12:07 -0700)
commit1505b379af16deab5b301b2f07f1d659ce2137cb
tree1440f36a221c904d2db821325cc07ae2fe9ecbbb
parent00d0c41d857a1c74169e43d1fba761cdd5279dba
maint: avoid int64_t and similar types unless they're needed

C11 doesn't require them, even POSIX doesn't strictly require the
64-bit versions, and it makes the code a bit clearer if they're
used only when needed.
* src/copy.c (write_zeros, extent_copy):
* src/extent-scan.h (struct extent_info.ext_length):
Use off_t, not uint64_t, for a value derived from a file offset.
* src/extent-scan.h (struct extent_info.ext_flags)
Prefer plain unsigned int to uint32_t where either will do.
(struct extent_scan.ei_count):
Use size_t, not uint32_t, for a value bounded by SIZE_MAX.
* src/factor.c (MAGIC64, MAGIC63, MAGIC65):
Remove unnecessary casts to uint64_t.
src/copy.c
src/extent-scan.h
src/factor.c