From 51d6e09bbe2ffcf46142fa0d5b91c0a00d1793d9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 29 Apr 2006 17:30:21 +0000 Subject: r15326: Fix compiler warnings. (This used to be commit ac68415ccf6ca37ffd24407b10bafc102c83dfc0) --- source4/lib/samba3/registry.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source4/lib/samba3') diff --git a/source4/lib/samba3/registry.c b/source4/lib/samba3/registry.c index 5f00a944e6..7f68c9df74 100644 --- a/source4/lib/samba3/registry.c +++ b/source4/lib/samba3/registry.c @@ -40,14 +40,14 @@ static int regdb_unpack_values(TDB_CONTEXT *tdb, TALLOC_CTX *ctx, struct samba3_ int len = 0; uint32_t type; uint32_t size; - uint8_t *data_p; + uint8_t *data_p; uint32_t num_values = 0; int i; fstring valuename; /* loop and unpack the rest of the registry values */ - len += tdb_unpack(tdb, data.dptr+len, data.dsize-len, "d", &num_values); + len += tdb_unpack(tdb, (char *)data.dptr+len, data.dsize-len, "d", &num_values); for ( i=0; i