aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dbm_map.c
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
commit0f0e198e07417180805c48f4d99838c792b076ba (patch)
tree4f5c5b53db1a500085344b6ad1af725742d43ec3 /dbm_map.c
parenta09440b57da00998d677c30931e5e800bf640e4b (diff)
downloadmandoc-0f0e198e07417180805c48f4d99838c792b076ba.tar.gz
mandoc-0f0e198e07417180805c48f4d99838c792b076ba.tar.zst
mandoc-0f0e198e07417180805c48f4d99838c792b076ba.zip
st_size is off_t, which is signed, so use %lld rather than %llu;
noticed by Ed Maste when compiling on FreeBSD
Diffstat (limited to 'dbm_map.c')
-rw-r--r--dbm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbm_map.c b/dbm_map.c
index 2207b555..5cb5d0f9 100644
--- a/dbm_map.c
+++ b/dbm_map.c
@@ -1,4 +1,4 @@
-/* $Id: dbm_map.c,v 1.5 2016/08/30 21:37:24 schwarze Exp $ */
+/* $Id: dbm_map.c,v 1.6 2016/10/20 16:12:56 schwarze Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -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;