From d8daf28b297263d3a9feeaf27a7095ebf4ebbd9b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 22 Oct 2016 10:09:27 +0000 Subject: cast off_t and uint64_t for printf(3) to make sure that widths match on all platforms; from Ed Maste ; OK guenther@ --- dbm_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbm_map.c') diff --git a/dbm_map.c b/dbm_map.c index 63b7cfa2..0c1f5eeb 100644 --- a/dbm_map.c +++ b/dbm_map.c @@ -101,7 +101,7 @@ dbm_map(const char *fname) max_offset = be32toh(*dbm_getint(3)) + sizeof(int32_t); if (st.st_size != max_offset) { warnx("dbm_map(%s): Inconsistent file size %lld (expected %d)", - fname, st.st_size, max_offset); + fname, (long long)st.st_size, max_offset); errno = EFTYPE; goto fail; } -- cgit