r8429: fix compiler warnings
authorStefan Metzmacher <metze@samba.org>
Wed, 13 Jul 2005 15:18:20 +0000 (15:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:02 +0000 (13:23 -0500)
metze
(This used to be commit b9ee5818808f2e0cd38c0c5d2ef15cba22d4edbe)

source4/rpc_server/lsa/dcesrv_lsa.c

index 726c82364b87850c1b5a8b0d73295cf08e146af6..07c4696845903f39e0d188c35ad3688efb22d943 100644 (file)
@@ -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;
                }