fix off_t use in lseek
cover fix off_t use in lseek
In lseek call, sometimes off_t is used, sometime u_int32_t or off64_t (with lseek64).
This patchset corrects those inconsistencies in respect with the WITHOUT_LARGEFILE compilation option.
Richard Genoud (3):
introduce PRIxoff_t and PRIdoff_t printf helpers consistency between u_int32_t / off_t / off64_t mkfs.jffs2: correct some warnings using PRIdoff_t
flash_erase.c | 16 +++++++------- flash_otp_write.c | 5 ++- ftl_check.c | 6 +++- ftl_format.c | 2 +- include/common.h | 11 ++++++++++ lib/libmtd.c | 12 +++++----- mkfs.jffs2.c | 10 ++++---- mkfs.ubifs/mkfs.ubifs.c | 11 ++++----- mtd_debug.c | 14 ++++++------ tests/fs-tests/integrity/integck.c | 4 +- tests/ubi-tests/integ.c | 38 ++++++++++++++++++------------------ 11 files changed, 71 insertions(+), 58 deletions(-)
Signature · 1 line
1.7.2.5
Quoted 4 lines · Richard Genoud
In lseek call, sometimes
off_tis used, sometimeu_int32_toroff64_t(with lseek64).
This patchset corrects those inconsistencies in respect with theWITHOUT_LARGEFILEcompilation option.
Could be a bit nicer (commit messages are not perfect, the second patch is rather big), but not big deal, pushed to mtd-utils.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy