summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-03 08:28:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:13 -0500
commita7d5bc2dd3837ce98710d0475f16ec571202bab5 (patch)
treec05b8748db39d7eb5ab9909af81e15409ced9355 /source4
parent20c7347f4305cb236f9752db127ac57471843e86 (diff)
downloadsamba-a7d5bc2dd3837ce98710d0475f16ec571202bab5.tar.gz
samba-a7d5bc2dd3837ce98710d0475f16ec571202bab5.tar.bz2
samba-a7d5bc2dd3837ce98710d0475f16ec571202bab5.zip
r13813: fix compiler warnings
metze (This used to be commit f1471c6c6ca796b5852e940ba88563b2edc21167)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/xattr_tdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/ntvfs/posix/xattr_tdb.c b/source4/ntvfs/posix/xattr_tdb.c
index f488569ca5..cea50bb4fa 100644
--- a/source4/ntvfs/posix/xattr_tdb.c
+++ b/source4/ntvfs/posix/xattr_tdb.c
@@ -52,7 +52,7 @@ static NTSTATUS xattr_tdb_add_list(struct pvfs_state *pvfs, const char *attr_nam
blob = data_blob(NULL, 0);
}
- for (s=blob.data; s < (char *)(blob.data+blob.length); s += strlen(s) + 1) {
+ for (s=(const char *)blob.data; s < (const char *)(blob.data+blob.length); s += strlen(s) + 1) {
if (strcmp(attr_name, s) == 0) {
talloc_free(mem_ctx);
return NT_STATUS_OK;
@@ -96,7 +96,7 @@ static NTSTATUS get_ea_db_key(TALLOC_CTX *mem_ctx,
}
}
- key->dptr = talloc_array(mem_ctx, char, 16 + len);
+ key->dptr = talloc_array(mem_ctx, uint8_t, 16 + len);
if (key->dptr == NULL) {
return NT_STATUS_NO_MEMORY;
}
@@ -225,7 +225,7 @@ NTSTATUS unlink_xattr_tdb(struct pvfs_state *pvfs, const char *fname)
return NT_STATUS_OK;
}
- for (s=blob.data; s < (char *)(blob.data+blob.length); s += strlen(s) + 1) {
+ for (s=(const char *)blob.data; s < (const char *)(blob.data+blob.length); s += strlen(s) + 1) {
delete_xattr_tdb(pvfs, s, fname, -1);
}