summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-11-25 19:31:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:09 -0500
commitdaea5e8c8c6cf83af0a41e858be571886fae7218 (patch)
tree3c1207a5f7c73318dcabbbe4ec0dba0df24c68c3 /source4
parentc199c2af1fa686962bb313222a0a0a29625ec450 (diff)
downloadsamba-daea5e8c8c6cf83af0a41e858be571886fae7218.tar.gz
samba-daea5e8c8c6cf83af0a41e858be571886fae7218.tar.bz2
samba-daea5e8c8c6cf83af0a41e858be571886fae7218.zip
r3969: fix compiler warnings
metze (This used to be commit 7d24b98f3ff55049a7c0d430c15e0a060b4aa2d3)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/common/brlock.c10
-rw-r--r--source4/ntvfs/common/opendb.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/source4/ntvfs/common/brlock.c b/source4/ntvfs/common/brlock.c
index 2b30270eff..e01f458e74 100644
--- a/source4/ntvfs/common/brlock.c
+++ b/source4/ntvfs/common/brlock.c
@@ -234,7 +234,7 @@ NTSTATUS brl_lock(struct brl_context *brl,
char *tp;
NTSTATUS status;
- kbuf.dptr = file_key->data;
+ kbuf.dptr = (char *)file_key->data;
kbuf.dsize = file_key->length;
if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
@@ -379,7 +379,7 @@ NTSTATUS brl_unlock(struct brl_context *brl,
struct lock_context context;
NTSTATUS status;
- kbuf.dptr = file_key->data;
+ kbuf.dptr = (char *)file_key->data;
kbuf.dsize = file_key->length;
if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
@@ -463,7 +463,7 @@ NTSTATUS brl_remove_pending(struct brl_context *brl,
struct lock_struct *locks;
NTSTATUS status;
- kbuf.dptr = file_key->data;
+ kbuf.dptr = (char *)file_key->data;
kbuf.dsize = file_key->length;
if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
@@ -534,7 +534,7 @@ NTSTATUS brl_locktest(struct brl_context *brl,
int count, i;
struct lock_struct lock, *locks;
- kbuf.dptr = file_key->data;
+ kbuf.dptr = (char *)file_key->data;
kbuf.dsize = file_key->length;
dbuf = tdb_fetch(brl->w->tdb, kbuf);
@@ -577,7 +577,7 @@ NTSTATUS brl_close(struct brl_context *brl,
struct lock_struct *locks;
NTSTATUS status;
- kbuf.dptr = file_key->data;
+ kbuf.dptr = (char *)file_key->data;
kbuf.dsize = file_key->length;
if (tdb_chainlock(brl->w->tdb, kbuf) != 0) {
diff --git a/source4/ntvfs/common/opendb.c b/source4/ntvfs/common/opendb.c
index 64bed53c8b..99c013fc84 100644
--- a/source4/ntvfs/common/opendb.c
+++ b/source4/ntvfs/common/opendb.c
@@ -488,7 +488,7 @@ NTSTATUS odb_can_open(struct odb_context *odb, DATA_BLOB *key,
int i, count;
struct odb_entry e;
- kbuf.dptr = key->data;
+ kbuf.dptr = (char *)key->data;
kbuf.dsize = key->length;
dbuf = tdb_fetch(odb->w->tdb, kbuf);