diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-25 18:53:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:59 -0500 |
commit | 115062e7cea8c265b9f910360ae3e8b9af4c95a8 (patch) | |
tree | 5d81a41794b12e8628f49fd89a8ebfe0ffb580e5 /source3 | |
parent | 70faa40a2dc67344d530dec8d12186cdf177ee4a (diff) | |
download | samba-115062e7cea8c265b9f910360ae3e8b9af4c95a8.tar.gz samba-115062e7cea8c265b9f910360ae3e8b9af4c95a8.tar.bz2 samba-115062e7cea8c265b9f910360ae3e8b9af4c95a8.zip |
r24049: Some more 64-bit warnings
(This used to be commit eabe796e464e5fe10d0f4cca1362985c529f5a5b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/tdb/common/io.c | 6 | ||||
-rw-r--r-- | source3/smbd/aio.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/lib/tdb/common/io.c b/source3/lib/tdb/common/io.c index df924a9dcd..b2b4ee0380 100644 --- a/source3/lib/tdb/common/io.c +++ b/source3/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; diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index afef36f61e..f4c4aaec41 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -415,7 +415,7 @@ static int handle_aio_read_complete(struct aio_extra *aio_ex) DEBUG( 3, ( "handle_aio_read_complete file %s max=%d " "nread=%d\n", aio_ex->fsp->fsp_name, - aio_ex->acb.aio_nbytes, (int)nread ) ); + (int)aio_ex->acb.aio_nbytes, (int)nread ) ); } smb_setlen(inbuf,outbuf,outsize - 4); |