diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-26 19:55:07 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-26 20:08:45 +0200 |
commit | d85d6054c98b4c164075e19175ac64e1b6f9acab (patch) | |
tree | 9b1d481ae5c3152732f66184689e270834981272 | |
parent | 3f2e9ce2b40f67de8ef8488551b72f90fbc06315 (diff) | |
download | samba-d85d6054c98b4c164075e19175ac64e1b6f9acab.tar.gz samba-d85d6054c98b4c164075e19175ac64e1b6f9acab.tar.bz2 samba-d85d6054c98b4c164075e19175ac64e1b6f9acab.zip |
s4:lsa/lsa_lookup.c - use a better type for the "rtype" of the wellknown SIDs
To suppress warnings on Solaris 10
-rw-r--r-- | source4/rpc_server/lsa/lsa_lookup.c | 7 |
1 files changed, 4 insertions, 3 deletions
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++; |