s4:lsa/lsa_lookup.c - use a better type for the "rtype" of the wellknown SIDs
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 26 Jun 2010 17:55:07 +0000 (19:55 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 26 Jun 2010 18:08:45 +0000 (20:08 +0200)
To suppress warnings on Solaris 10

source4/rpc_server/lsa/lsa_lookup.c

index 7452c73d6f795a7d58a4bf034383a7b2d167ea88..11a6750a8a7575406768c3f9c007e8b2e1bf61c5 100644 (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++;