From d85d6054c98b4c164075e19175ac64e1b6f9acab Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 26 Jun 2010 19:55:07 +0200 Subject: s4:lsa/lsa_lookup.c - use a better type for the "rtype" of the wellknown SIDs To suppress warnings on Solaris 10 --- source4/rpc_server/lsa/lsa_lookup.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source4/rpc_server/lsa/lsa_lookup.c') diff --git a/source4/rpc_server/lsa/lsa_lookup.c b/source4/rpc_server/lsa/lsa_lookup.c index 7452c73d6f..11a6750a8a 100644 --- a/source4/rpc_server/lsa/lsa_lookup.c +++ b/source4/rpc_server/lsa/lsa_lookup.c @@ -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++; -- cgit