From b8fe0f6711977412f8a7103022b01f3428d9c3a0 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 23 Oct 2001 20:39:38 +0000 Subject: more compiler warnings (This used to be commit 12c10e876ea528fdf33e8ecfe42ab0ebb346b143) --- source3/auth/auth_rhosts.c | 2 +- source3/auth/auth_sam.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/auth_rhosts.c b/source3/auth/auth_rhosts.c index cd1bf57f86..d6ca01936f 100644 --- a/source3/auth/auth_rhosts.c +++ b/source3/auth/auth_rhosts.c @@ -86,7 +86,7 @@ static BOOL check_user_equiv(const char *user, const char *remote, const char *e static char *mydomain = NULL; if (!mydomain) yp_get_default_domain(&mydomain); - if (mydomain && innetgr(file_host,remote,user,mydomain)) + if (mydomain && innetgr(file_host,(char *)remote,(char *)user,mydomain)) host_ok = True; } #else diff --git a/source3/auth/auth_sam.c b/source3/auth/auth_sam.c index a525248461..2070f09fd6 100644 --- a/source3/auth/auth_sam.c +++ b/source3/auth/auth_sam.c @@ -311,7 +311,7 @@ NTSTATUS check_smbpasswd_security(const auth_usersupplied_info *user_info, auth_ return NT_STATUS_NO_SUCH_USER; } - nt_status = sam_password_ok(sampass, user_info, server_info->session_key); + nt_status = sam_password_ok(sampass, user_info, (char *)(server_info->session_key)); if NT_STATUS_IS_OK(nt_status) { nt_status = sam_account_ok(sampass, user_info); -- cgit