diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-09-05 08:11:17 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-09-05 08:11:17 +0000 |
commit | 7844aa868b02f99c013f336ee03ef05adbd11a7b (patch) | |
tree | add54a56c99250d44b5e7508f1f7a9469b1312f0 /source3/nsswitch | |
parent | 7deed93dd7c451b71d9b3cd801a265dbe8e664fc (diff) | |
download | samba-7844aa868b02f99c013f336ee03ef05adbd11a7b.tar.gz samba-7844aa868b02f99c013f336ee03ef05adbd11a7b.tar.bz2 samba-7844aa868b02f99c013f336ee03ef05adbd11a7b.zip |
more warning fixes on solaris
(This used to be commit c04c67fec85b1c81ef0b3cebacde304a1de0d854)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbind_nss_config.h | 4 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_group.c | 2 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_pam.c | 4 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_proto.h | 2 | ||||
-rw-r--r-- | source3/nsswitch/winbindd_util.c | 4 |
5 files changed, 10 insertions, 6 deletions
diff --git a/source3/nsswitch/winbind_nss_config.h b/source3/nsswitch/winbind_nss_config.h index de3c61e496..88561ee808 100644 --- a/source3/nsswitch/winbind_nss_config.h +++ b/source3/nsswitch/winbind_nss_config.h @@ -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> diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index c4ec9b2ce4..55dd41afd4 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -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; diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c index b5c3a80422..0408c3a2fb 100644 --- a/source3/nsswitch/winbindd_pam.c +++ b/source3/nsswitch/winbindd_pam.c @@ -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; diff --git a/source3/nsswitch/winbindd_proto.h b/source3/nsswitch/winbindd_proto.h index 96ce772bd3..e2de9cca6f 100644 --- a/source3/nsswitch/winbindd_proto.h +++ b/source3/nsswitch/winbindd_proto.h @@ -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); diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index 13f8e07c61..aca625fe66 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/nsswitch/winbindd_util.c @@ -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 */ |