summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-10-20 16:12:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-10-20 16:12:56 +0000
commitf1084b17d0d489eb1a9eb8ab2c62ad38ce48da33 (patch)
treea440c31e0d973fb1a3dff4dc11b321f991f65839
parent7abd0407381df78f84ebde8cd8e0ca36c538a498 (diff)
downloadmandoc-f1084b17d0d489eb1a9eb8ab2c62ad38ce48da33.tar.gz
st_size is off_t, which is signed, so use %lld rather than %llu;
noticed by Ed Maste when compiling on FreeBSD
-rw-r--r--dbm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbm_map.c b/dbm_map.c
index d5d53395..63b7cfa2 100644
--- a/dbm_map.c
+++ b/dbm_map.c
@@ -100,7 +100,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 %llu (expected %d)",
+ warnx("dbm_map(%s): Inconsistent file size %lld (expected %d)",
fname, st.st_size, max_offset);
errno = EFTYPE;
goto fail;