more warning fixes on solaris
authorAndrew Tridgell <tridge@samba.org>
Wed, 5 Sep 2001 08:11:17 +0000 (08:11 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 5 Sep 2001 08:11:17 +0000 (08:11 +0000)
source/libsmb/cli_netlogon.c
source/nsswitch/winbind_nss_config.h
source/nsswitch/winbindd_group.c
source/nsswitch/winbindd_pam.c
source/nsswitch/winbindd_proto.h
source/nsswitch/winbindd_util.c
source/passdb/passdb.c
source/utils/smbtree.c

index dc43ab935d9ec43ac1e3f2591868cd0bbeb1763a..b330299721e198b1d7e596a2d1beff93225a0f6e 100644 (file)
@@ -288,7 +288,7 @@ NTSTATUS cli_netlogon_sam_sync(struct cli_state *cli, TALLOC_CTX *mem_ctx,
        NET_R_SAM_SYNC r;
        NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
         DOM_CRED clnt_creds;
-        char sess_key[16];
+        uchar sess_key[16];
 
        ZERO_STRUCT(q);
        ZERO_STRUCT(r);
@@ -347,7 +347,7 @@ NTSTATUS cli_netlogon_sam_deltas(struct cli_state *cli, TALLOC_CTX *mem_ctx,
        NET_R_SAM_DELTAS r;
        NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
         DOM_CRED clnt_creds;
-        char sess_key[16];
+        uchar sess_key[16];
 
        ZERO_STRUCT(q);
        ZERO_STRUCT(r);
index de3c61e496d88cc94c35187cc227563659782120..88561ee80844bd8e9049d6b512d4eb49c5ca16d1 100644 (file)
 #include <grp.h>
 #endif
 
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>
index c4ec9b2ce49b39f208e409a3b2c2142920b677ef..55dd41afd4b2f83e494e1b38bb0021bd25834cb3 100644 (file)
@@ -48,7 +48,7 @@ static BOOL fill_grent_mem(struct winbindd_domain *domain,
                           int *num_gr_mem, char **gr_mem, int *gr_mem_len)
 {
        uint32 *rid_mem = NULL, num_names = 0;
-       enum SID_NAME_USE *name_types = NULL;
+       uint32 *name_types = NULL;
        int buf_len, buf_ndx, i;
        char **names = NULL, *buf;
        BOOL result = False;
index b5c3a804229aae9318a5d6c5a6d61a1c1b0a8930..0408c3a2fb0cb99b8fdf95a018e57609d4184ec0 100644 (file)
@@ -182,8 +182,8 @@ enum winbindd_result winbindd_pam_auth_crap(struct winbindd_cli_state *state)
 
         memcpy(user_info.chal, state->request.data.auth_crap.chal, 8);
 
-        user_info.lm_resp.buffer = state->request.data.auth_crap.lm_resp;
-        user_info.nt_resp.buffer = state->request.data.auth_crap.nt_resp;
+        user_info.lm_resp.buffer = (uchar *)state->request.data.auth_crap.lm_resp;
+        user_info.nt_resp.buffer = (uchar *)state->request.data.auth_crap.nt_resp;
         
         user_info.lm_resp.len = 24;
         user_info.nt_resp.len = 24;
index 96ce772bd3d5bd4c1b628636ce2d472b47d3b25b..e2de9cca6f4400d96676312df8291f23a99d95a8 100644 (file)
@@ -131,7 +131,7 @@ BOOL winbindd_lookup_groupinfo(struct winbindd_domain *domain,
 BOOL winbindd_lookup_groupmem(struct winbindd_domain *domain,
                               uint32 group_rid, uint32 *num_names, 
                               uint32 **rid_mem, char ***names, 
-                              enum SID_NAME_USE **name_types);
+                              uint32 **name_types);
 struct winbindd_domain *find_domain_from_name(char *domain_name);
 struct winbindd_domain *find_domain_from_sid(DOM_SID *sid);
 void free_getent_state(struct getent_state *state);
index 13f8e07c61ca732aa9361c362d767f95001cd5d9..aca625fe6673f7a651cfc95a234d10c0ab77fe7e 100644 (file)
@@ -621,7 +621,7 @@ BOOL winbindd_lookup_groupinfo(struct winbindd_domain *domain,
 BOOL winbindd_lookup_groupmem(struct winbindd_domain *domain,
                               uint32 group_rid, uint32 *num_names, 
                               uint32 **rid_mem, char ***names, 
-                              enum SID_NAME_USE **name_types)
+                              uint32 **name_types)
 {
        return wb_sam_query_groupmem(&domain->sam_dom_handle, group_rid, 
                                     num_names, rid_mem, names, name_types);
@@ -834,7 +834,7 @@ char *winbindd_cmd_to_string(enum winbindd_cmd cmd)
        }
 
        return result;
-};
+}
 
 /* find the sequence number for a domain */
 
index 8144a8e3dde42dddee8a2f6a5df6a82937d217c2..c86e4c17a776cda7f152514b8fe4a15a0e773fed 100644 (file)
@@ -49,7 +49,8 @@ BOOL initialize_password_db(BOOL reload)
           ignore the details and always return True.  It is here 
           only as a placeholder --jerry */
        return True;
-       
+
+#if _NOT_YET_  
        /* load another module? */
        if (reload && pdb_handle)
        {
@@ -85,6 +86,7 @@ BOOL initialize_password_db(BOOL reload)
                                        
 
        return (pdb_handle != NULL);
+#endif
 }
 
 /*************************************************************
index 0f824f7ecf3b429f3ce494d90ebc6685df1e7f11..41940d9a6cad0f0059d1f0ad2588289b71417b76 100644 (file)
@@ -183,10 +183,10 @@ static BOOL find_master_ip_bcast(pstring workgroup, struct in_addr *server_ip)
                static fstring name;
 
                if (!name_status_find(0x1d, ip_list[i], name))
-                        return False;
+                       continue;
 
                 if (!find_master_ip(name, server_ip))
-                        return False;
+                       continue;
 
                 pstrcpy(workgroup, name);