summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-13 15:18:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:23:02 -0500
commit58d06f205e38cbfb334e4005983ec854c6a0b909 (patch)
tree9cac2e6b8804fa871f3b14c795ef80f8ea8e2268
parent4caf19ca3539662fc39567ab8529b30118d0b080 (diff)
downloadsamba-58d06f205e38cbfb334e4005983ec854c6a0b909.tar.gz
samba-58d06f205e38cbfb334e4005983ec854c6a0b909.tar.bz2
samba-58d06f205e38cbfb334e4005983ec854c6a0b909.zip
r8429: fix compiler warnings
metze (This used to be commit b9ee5818808f2e0cd38c0c5d2ef15cba22d4edbe)
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 726c82364b..07c4696845 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -1373,7 +1373,7 @@ static NTSTATUS lsa_EnumPrivsAccount(struct dcesrv_call_state *dce_call,
}
for (i=0;i<el->num_values;i++) {
- int id = sec_privilege_id(el->values[i].data);
+ int id = sec_privilege_id((const char *)el->values[i].data);
if (id == -1) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
@@ -1430,7 +1430,7 @@ static NTSTATUS lsa_EnumAccountRights(struct dcesrv_call_state *dce_call,
}
for (i=0;i<el->num_values;i++) {
- r->out.rights->names[i].string = el->values[i].data;
+ r->out.rights->names[i].string = (const char *)el->values[i].data;
}
return NT_STATUS_OK;
@@ -1516,7 +1516,7 @@ static NTSTATUS lsa_AddRemoveAccountRights(struct dcesrv_call_state *dce_call,
el.values[el.num_values].length = strlen(rights->names[i].string);
- el.values[el.num_values].data = talloc_strdup(mem_ctx, rights->names[i].string);
+ el.values[el.num_values].data = (uint8_t *)talloc_strdup(mem_ctx, rights->names[i].string);
if (el.values[el.num_values].data == NULL) {
return NT_STATUS_NO_MEMORY;
}