summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-03 06:39:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:53 -0500
commit8cc702bf5aeb0bedf012affb0c476cfc5f3dfa80 (patch)
tree3340b9bfce3305483255e8b0b535eca0c4e9f2ff
parent9985f25f0031cb1c91fd99cddf6f80bdf66b4dad (diff)
downloadsamba-8cc702bf5aeb0bedf012affb0c476cfc5f3dfa80.tar.gz
samba-8cc702bf5aeb0bedf012affb0c476cfc5f3dfa80.tar.bz2
samba-8cc702bf5aeb0bedf012affb0c476cfc5f3dfa80.zip
r20498: Two 64-bit warnings
(This used to be commit 382827ebac61646ec31fe1d56ccde2ea337e8f9e)
-rw-r--r--source3/tdb/common/io.c6
-rw-r--r--source3/utils/net_rpc_registry.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/source3/tdb/common/io.c b/source3/tdb/common/io.c
index 9a6084888d..1fa947019b 100644
--- a/source3/tdb/common/io.c
+++ b/source3/tdb/common/io.c
@@ -124,8 +124,10 @@ static int tdb_read(struct tdb_context *tdb, tdb_off_t off, void *buf,
if (ret != (ssize_t)len) {
/* Ensure ecode is set for log fn. */
tdb->ecode = TDB_ERR_IO;
- TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_read failed at %d len=%d ret=%d (%s) map_size=%d\n",
- off, len, ret, strerror(errno), (int)tdb->map_size));
+ TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_read failed at %d "
+ "len=%d ret=%d (%s) map_size=%d\n",
+ (int)off, (int)len, ret, strerror(errno),
+ (int)tdb->map_size));
return TDB_ERRCODE(TDB_ERR_IO, -1);
}
}
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index ea160b201c..e63471f176 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -661,7 +661,7 @@ static NTSTATUS rpc_registry_enumerate_internal(const DOM_SID *domain_sid,
}
case REG_BINARY:
d_printf("Value = %d bytes\n",
- v->v.binary.length);
+ (int)v->v.binary.length);
break;
default:
d_printf("Value = <unprintable>\n");