diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-25 18:53:16 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2007-07-25 18:53:16 +0000 |
commit | 31a42c05d148a1549a2aeb7e3b51f95e0d52a882 (patch) | |
tree | 3a0d4f2323a0699353aea6f59584211f19cd9a6d /source/lib/tdb/common/io.c | |
parent | 44f00823bbab68f1290cf0323d547f392dc7e3af (diff) | |
download | samba-31a42c05d148a1549a2aeb7e3b51f95e0d52a882.tar.gz samba-31a42c05d148a1549a2aeb7e3b51f95e0d52a882.tar.xz samba-31a42c05d148a1549a2aeb7e3b51f95e0d52a882.zip |
r24049: Some more 64-bit warnings
Diffstat (limited to 'source/lib/tdb/common/io.c')
-rw-r--r-- | source/lib/tdb/common/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lib/tdb/common/io.c b/source/lib/tdb/common/io.c index df924a9dcd7..b2b4ee03802 100644 --- a/source/lib/tdb/common/io.c +++ b/source/lib/tdb/common/io.c @@ -255,11 +255,13 @@ static int tdb_expand_file(struct tdb_context *tdb, tdb_off_t size, tdb_off_t ad return -1; } else if (written == -1) { TDB_LOG((tdb, TDB_DEBUG_FATAL, "expand_file write of " - "%d bytes failed (%s)\n", n, strerror(errno))); + "%d bytes failed (%s)\n", (int)n, + strerror(errno))); return -1; } else if (written != n) { TDB_LOG((tdb, TDB_DEBUG_WARNING, "expand_file: wrote " - "only %d of %d bytes - retrying\n", written,n)); + "only %d of %d bytes - retrying\n", (int)written, + (int)n)); } addition -= written; size += written; |