summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dbm_map.c2
-rw-r--r--mandocdb.c3
2 files changed, 3 insertions, 2 deletions
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;
}
diff --git a/mandocdb.c b/mandocdb.c
index 380c63cb..0c30e6ce 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -1739,7 +1739,8 @@ putkeys(const struct mpage *mpage, char *cp, size_t sz, uint64_t v)
name_mask &= ~NAME_FIRST;
if (debug > 1)
say(mpage->mlinks->file,
- "Adding name %*s, bits=0x%llx", (int)sz, cp, v);
+ "Adding name %*s, bits=0x%llx", (int)sz, cp,
+ (unsigned long long)v);
} else {
htab = &strings;
if (debug > 1)