From 823ee74aa48b17f435bf6a33663a7d92c049ee00 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbm_map.c') diff --git a/dbm_map.c b/dbm_map.c index 5cb5d0f9..d158302b 100644 --- a/dbm_map.c +++ b/dbm_map.c @@ -1,4 +1,4 @@ -/* $Id: dbm_map.c,v 1.6 2016/10/20 16:12:56 schwarze Exp $ */ +/* $Id: dbm_map.c,v 1.7 2016/10/22 10:09:27 schwarze Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze * @@ -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 v1.2.3-56-ge451