diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-10-22 10:09:27 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-10-22 10:09:27 +0000 |
commit | d8daf28b297263d3a9feeaf27a7095ebf4ebbd9b (patch) | |
tree | cb165d4bac8dc2d7b20064db890f0e19ef45fd86 /dbm_map.c | |
parent | ac392c19f6919943ac4f940c8b6468bf59ffc6b0 (diff) | |
download | mandoc-d8daf28b297263d3a9feeaf27a7095ebf4ebbd9b.tar.gz |
cast off_t and uint64_t for printf(3)
to make sure that widths match on all platforms;
from Ed Maste <emaste at freebsd dot org>;
OK guenther@
Diffstat (limited to 'dbm_map.c')
-rw-r--r-- | dbm_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |