summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-29 17:30:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:16 -0500
commit51d6e09bbe2ffcf46142fa0d5b91c0a00d1793d9 (patch)
tree1bcba2ad89e2beb6a757ab7e7d250e3edb2fa663 /source4
parent6e62c6beac456c07d651db9ea351debe8c60c301 (diff)
downloadsamba-51d6e09bbe2ffcf46142fa0d5b91c0a00d1793d9.tar.gz
samba-51d6e09bbe2ffcf46142fa0d5b91c0a00d1793d9.tar.bz2
samba-51d6e09bbe2ffcf46142fa0d5b91c0a00d1793d9.zip
r15326: Fix compiler warnings.
(This used to be commit ac68415ccf6ca37ffd24407b10bafc102c83dfc0)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/samba3/registry.c14
1 files changed, 7 insertions, 7 deletions
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<num_values; i++ ) {
struct samba3_regval val;
@@ -56,7 +56,7 @@ static int regdb_unpack_values(TDB_CONTEXT *tdb, TALLOC_CTX *ctx, struct samba3_
type = REG_NONE;
size = 0;
data_p = NULL;
- len += tdb_unpack(tdb, data.dptr+len, data.dsize-len, "fdB",
+ len += tdb_unpack(tdb, (char *)data.dptr+len, data.dsize-len, "fdB",
valuename,
&val.type,
&size,
@@ -109,14 +109,14 @@ NTSTATUS samba3_read_regdb ( const char *fn, TALLOC_CTX *ctx, struct samba3_regd
struct samba3_regkey key;
char *skey;
- if (strncmp(kbuf.dptr, VALUE_PREFIX, strlen(VALUE_PREFIX)) == 0)
+ if (strncmp((char *)kbuf.dptr, VALUE_PREFIX, strlen(VALUE_PREFIX)) == 0)
continue;
vbuf = tdb_fetch(tdb, kbuf);
- key.name = talloc_strdup(ctx, kbuf.dptr);
+ key.name = talloc_strdup(ctx, (char *)kbuf.dptr);
- len = tdb_unpack(tdb, vbuf.dptr, vbuf.dsize, "d", &key.subkey_count);
+ len = tdb_unpack(tdb, (char *)vbuf.dptr, vbuf.dsize, "d", &key.subkey_count);
key.value_count = 0;
key.values = NULL;
@@ -124,7 +124,7 @@ NTSTATUS samba3_read_regdb ( const char *fn, TALLOC_CTX *ctx, struct samba3_regd
for (i = 0; i < key.subkey_count; i++) {
fstring tmp;
- len += tdb_unpack( tdb, vbuf.dptr+len, vbuf.dsize-len, "f", tmp );
+ len += tdb_unpack( tdb, (char *)vbuf.dptr+len, vbuf.dsize-len, "f", tmp );
key.subkeys[i] = talloc_strdup(ctx, tmp);
}