svn commit: samba r15326 - in branches/SAMBA_4_0/source/lib/samba3:
.
jelmer at samba.org
jelmer at samba.org
Sat Apr 29 17:30:23 GMT 2006
Author: jelmer
Date: 2006-04-29 17:30:21 +0000 (Sat, 29 Apr 2006)
New Revision: 15326
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15326
Log:
Fix compiler warnings.
Modified:
branches/SAMBA_4_0/source/lib/samba3/registry.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/samba3/registry.c
===================================================================
--- branches/SAMBA_4_0/source/lib/samba3/registry.c 2006-04-29 16:12:01 UTC (rev 15325)
+++ branches/SAMBA_4_0/source/lib/samba3/registry.c 2006-04-29 17:30:21 UTC (rev 15326)
@@ -40,14 +40,14 @@
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 @@
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 @@
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 @@
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);
}
More information about the samba-cvs
mailing list