From 914cd3e483bd83fb4d8e769b90d9136336ea51e9 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Thu, 6 Mar 2008 10:41:42 -0500 Subject: Eliminate global variable in_client and a plethora of extern declarations. Derrell (This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc) --- source3/pam_smbpass/pam_smb_passwd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/pam_smbpass/pam_smb_passwd.c') diff --git a/source3/pam_smbpass/pam_smb_passwd.c b/source3/pam_smbpass/pam_smb_passwd.c index 326a0b59e7..b6de43ff97 100644 --- a/source3/pam_smbpass/pam_smb_passwd.c +++ b/source3/pam_smbpass/pam_smb_passwd.c @@ -98,8 +98,6 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, unsigned int ctrl; int retval; - extern bool in_client; - struct samu *sampass = NULL; void (*oldsig_handler)(int); const char *user; @@ -109,7 +107,7 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, /* Samba initialization. */ load_case_tables(); setup_logging( "pam_smbpass", False ); - in_client = True; + lp_set_in_client(True); ctrl = set_ctrl(flags, argc, argv); -- cgit