summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorZach Loafman <zachary.loafman@isilon.com>2008-07-03 22:53:42 -0700
committerVolker Lendecke <vl@samba.org>2008-07-22 15:00:48 +0200
commit06d0790c0799112b89534a646e78d0cb38b06e20 (patch)
tree2ad1d24462b3c30bb1513d5982e79323f6305996 /source3/winbindd
parent45bbad9ca03621e67b4fe1db3299da0557fcf812 (diff)
downloadsamba-06d0790c0799112b89534a646e78d0cb38b06e20.tar.gz
samba-06d0790c0799112b89534a646e78d0cb38b06e20.tar.bz2
samba-06d0790c0799112b89534a646e78d0cb38b06e20.zip
Fix various build warnings
This fixes various build warnings on our platform. I'm sure I haven't caught them all, but it's a start. (This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_pam.c36
1 files changed, 14 insertions, 22 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index c26f552d31..0f9f1e1621 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -1179,6 +1179,18 @@ done:
return result;
}
+typedef NTSTATUS (*netlogon_fn_t)(struct rpc_pipe_client *cli,
+ TALLOC_CTX *mem_ctx,
+ uint32 logon_parameters,
+ const char *server,
+ const char *username,
+ const char *domain,
+ const char *workstation,
+ const uint8 chal[8],
+ DATA_BLOB lm_response,
+ DATA_BLOB nt_response,
+ struct netr_SamInfo3 **info3);
+
NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
struct winbindd_cli_state *state,
struct netr_SamInfo3 **info3)
@@ -1285,17 +1297,7 @@ NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
/* check authentication loop */
do {
- NTSTATUS (*logon_fn)(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint32 logon_parameters,
- const char *server,
- const char *username,
- const char *ldomain,
- const char *workstation,
- const uint8 lchal[8],
- DATA_BLOB lm_response,
- DATA_BLOB nt_response,
- struct netr_SamInfo3 **linfo3);
+ netlogon_fn_t logon_fn;
ZERO_STRUCTP(my_info3);
retry = False;
@@ -1863,17 +1865,7 @@ enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
}
do {
- NTSTATUS (*logon_fn)(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- uint32 logon_parameters,
- const char *server,
- const char *username,
- const char *ldomain,
- const char *lworkstation,
- const uint8 lchal[8],
- DATA_BLOB lm_response,
- DATA_BLOB nt_response,
- struct netr_SamInfo3 **linfo3);
+ netlogon_fn_t logon_fn;
retry = False;