mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
more warning fixes on solaris
(This used to be commit c04c67fec85b1c81ef0b3cebacde304a1de0d854)
This commit is contained in:
parent
7deed93dd7
commit
7844aa868b
@ -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);
|
||||
|
@ -55,6 +55,10 @@
|
||||
#include <grp.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user