diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-10-20 16:12:56 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-10-20 16:12:56 +0000 |
commit | 0f0e198e07417180805c48f4d99838c792b076ba (patch) | |
tree | 4f5c5b53db1a500085344b6ad1af725742d43ec3 | |
parent | a09440b57da00998d677c30931e5e800bf640e4b (diff) | |
download | mandoc-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
-rw-r--r-- | dbm_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |