1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s4:lsa/lsa_lookup.c - use a better type for the "rtype" of the wellknown SIDs

To suppress warnings on Solaris 10
This commit is contained in:
Matthias Dieter Wallnöfer 2010-06-26 19:55:07 +02:00
parent 3f2e9ce2b4
commit d85d6054c9

View File

@ -26,7 +26,7 @@ static const struct {
const char *domain;
const char *name;
const char *sid;
int rtype;
enum lsa_SidType rtype;
} well_known[] = {
{
.name = "EVERYONE",
@ -219,7 +219,7 @@ static NTSTATUS lookup_well_known_names(TALLOC_CTX *mem_ctx, const char *domain,
static NTSTATUS lookup_well_known_sids(TALLOC_CTX *mem_ctx,
const char *sid_str, const char **authority_name,
const char **name, uint32_t *rtype)
const char **name, enum lsa_SidType *rtype)
{
unsigned int i;
for (i=0; well_known[i].sid; i++) {
@ -939,7 +939,8 @@ NTSTATUS dcesrv_lsa_LookupNames2(struct dcesrv_call_state *dce_call,
const char *name = r->in.names[i].string;
const char *authority_name;
struct dom_sid *sid;
uint32_t rtype, sid_index, rid=0;
uint32_t sid_index, rid=0;
enum lsa_SidType rtype;
NTSTATUS status2;
r->out.sids->count++;