summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-29 09:35:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:00 -0500
commit3a28443079c141a6ce8182c65b56ca210e34f37f (patch)
treeaf4f98cbdd18a94414169bbdec13e17c4c4319ef /source/rpc_parse
parent1f047d7e31252481c4ed905e0dfdb791c704adca (diff)
downloadsamba-3a28443079c141a6ce8182c65b56ca210e34f37f.tar.gz
samba-3a28443079c141a6ce8182c65b56ca210e34f37f.tar.xz
samba-3a28443079c141a6ce8182c65b56ca210e34f37f.zip
r22009: change TDB_DATA from char * to unsigned char *
and fix all compiler warnings in the users metze
Diffstat (limited to 'source/rpc_parse')
-rw-r--r--source/rpc_parse/parse_prs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_prs.c b/source/rpc_parse/parse_prs.c
index 0fb429b5917..632a33cb9a5 100644
--- a/source/rpc_parse/parse_prs.c
+++ b/source/rpc_parse/parse_prs.c
@@ -1457,7 +1457,7 @@ BOOL prs_uint32_post(const char *name, prs_struct *ps, int depth, uint32 *data32
int tdb_prs_store(TDB_CONTEXT *tdb, TDB_DATA kbuf, prs_struct *ps)
{
TDB_DATA dbuf;
- dbuf.dptr = ps->data_p;
+ dbuf.dptr = (uint8 *)ps->data_p;
dbuf.dsize = prs_offset(ps);
return tdb_trans_store(tdb, kbuf, dbuf, TDB_REPLACE);
}
@@ -1479,7 +1479,7 @@ int tdb_prs_fetch(TDB_CONTEXT *tdb, TDB_DATA kbuf, prs_struct *ps, TALLOC_CTX *m
if (!dbuf.dptr)
return -1;
- prs_give_memory(ps, dbuf.dptr, dbuf.dsize, True);
+ prs_give_memory(ps, (char *)dbuf.dptr, dbuf.dsize, True);
return 0;
}