From 0f0e198e07417180805c48f4d99838c792b076ba Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 20 Oct 2016 16:12:56 +0000 Subject: st_size is off_t, which is signed, so use %lld rather than %llu; noticed by Ed Maste when compiling on FreeBSD --- dbm_map.c | 4 ++-- 1 file 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 * @@ -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; -- cgit v1.2.3