diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-10-20 16:12:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-10-20 16:12:15 +0000 |
commit | 27cabc139bb049bcf3776f64fca8612d52d0d2ab (patch) | |
tree | b6b5f95ee85e9a689b45f308b44b794bea4bc2b1 /usr.bin/mandoc | |
parent | d20c6dbe9c26071cfaa58e4605a820b778d8b1a3 (diff) |
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 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/dbm_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/dbm_map.c b/usr.bin/mandoc/dbm_map.c index 875d6326523..5b269f8a380 100644 --- a/usr.bin/mandoc/dbm_map.c +++ b/usr.bin/mandoc/dbm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dbm_map.c,v 1.3 2016/08/30 21:36:54 schwarze Exp $ */ +/* $OpenBSD: dbm_map.c,v 1.4 2016/10/20 16:12:14 schwarze Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> * @@ -90,7 +90,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; |