summaryrefslogtreecommitdiffstats
path: root/source/locking/brlock.c
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/locking/brlock.c
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/locking/brlock.c')
-rw-r--r--source/locking/brlock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/locking/brlock.c b/source/locking/brlock.c
index 76a4039d823..899e211ffcc 100644
--- a/source/locking/brlock.c
+++ b/source/locking/brlock.c
@@ -1453,7 +1453,7 @@ static int traverse_fn(TDB_CONTEXT *ttdb, TDB_DATA kbuf, TDB_DATA dbuf, void *st
}
if (orig_num_locks != num_locks) {
- dbuf.dptr = (char *)locks;
+ dbuf.dptr = (uint8 *)locks;
dbuf.dsize = num_locks * sizeof(*locks);
if (dbuf.dsize) {
@@ -1499,7 +1499,7 @@ static int byte_range_lock_destructor(struct byte_range_lock *br_lck)
{
TDB_DATA key;
- key.dptr = (char *)&br_lck->key;
+ key.dptr = (uint8 *)&br_lck->key;
key.dsize = sizeof(struct lock_key);
if (br_lck->read_only) {
@@ -1517,7 +1517,7 @@ static int byte_range_lock_destructor(struct byte_range_lock *br_lck)
}
} else {
TDB_DATA data;
- data.dptr = (char *)br_lck->lock_data;
+ data.dptr = (uint8 *)br_lck->lock_data;
data.dsize = br_lck->num_locks * sizeof(struct lock_struct);
if (tdb_store(tdb, key, data, TDB_REPLACE) == -1) {
@@ -1558,7 +1558,7 @@ static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx,
br_lck->key.device = fsp->dev;
br_lck->key.inode = fsp->inode;
- key.dptr = (char *)&br_lck->key;
+ key.dptr = (uint8 *)&br_lck->key;
key.dsize = sizeof(struct lock_key);
if (!fsp->lockdb_clean) {