1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r20498: Two 64-bit warnings

(This used to be commit 382827ebac)
This commit is contained in:
Volker Lendecke 2007-01-03 06:39:18 +00:00 committed by Gerald (Jerry) Carter
parent 9985f25f00
commit 8cc702bf5a
2 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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");