1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

r13813: fix compiler warnings

metze
(This used to be commit f1471c6c6ca796b5852e940ba88563b2edc21167)
This commit is contained in:
Stefan Metzmacher 2006-03-03 08:28:42 +00:00 committed by Gerald (Jerry) Carter
parent 20c7347f43
commit a7d5bc2dd3

View File

@ -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);
}