t***@t-online.de
2017-02-11 16:43:30 UTC
From: Torsten Fleischer <***@t-online.de>
On different systems the size of off_t and loff_t can differ from each
other and they can have a size of either 4 or 8 byte.
The first patch creates the definitions for the printf format specifier
for both data types according to the size of them.
This fixes several compiler warnings on 32bit systems.
The second patch replaces the format specifier that is wrong for 32bit
systems by the appropriate definition for off_t.
Torsten Fleischer (2):
mtd-utils: Fix format specifier definitions for off_t and loff_t.
mtd-utils: serve_image: Use PRIdoff_t as format specifier.
configure.ac | 2 +-
include/common.h | 14 +++++++++-----
misc-utils/serve_image.c | 4 +++-
tests/mtd-tests/nandpagetest.c | 2 +-
4 files changed, 14 insertions(+), 8 deletions(-)
On different systems the size of off_t and loff_t can differ from each
other and they can have a size of either 4 or 8 byte.
The first patch creates the definitions for the printf format specifier
for both data types according to the size of them.
This fixes several compiler warnings on 32bit systems.
The second patch replaces the format specifier that is wrong for 32bit
systems by the appropriate definition for off_t.
Torsten Fleischer (2):
mtd-utils: Fix format specifier definitions for off_t and loff_t.
mtd-utils: serve_image: Use PRIdoff_t as format specifier.
configure.ac | 2 +-
include/common.h | 14 +++++++++-----
misc-utils/serve_image.c | 4 +++-
tests/mtd-tests/nandpagetest.c | 2 +-
4 files changed, 14 insertions(+), 8 deletions(-)
--
2.1.4
2.1.4