summaryrefslogtreecommitdiff
path: root/source3/pam_smbpass/pam_smb_auth.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-02-19 15:25:09 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-23 12:23:42 +0100
commit069350d7e4d9e13ea5451273db51023e972a9373 (patch)
tree89b335b1b2db1716a7850dcd38b1485c064a96e4 /source3/pam_smbpass/pam_smb_auth.c
parentb9cf55cfeae854cd90cd4bd7b55b7313f34af828 (diff)
downloadsamba-069350d7e4d9e13ea5451273db51023e972a9373.tar.gz
samba-069350d7e4d9e13ea5451273db51023e972a9373.tar.bz2
samba-069350d7e4d9e13ea5451273db51023e972a9373.zip
s3-pam_smbpass: Remove obsolete signal type cast.
Diffstat (limited to 'source3/pam_smbpass/pam_smb_auth.c')
-rw-r--r--source3/pam_smbpass/pam_smb_auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/pam_smbpass/pam_smb_auth.c b/source3/pam_smbpass/pam_smb_auth.c
index 88ff9851f5..feb469792d 100644
--- a/source3/pam_smbpass/pam_smb_auth.c
+++ b/source3/pam_smbpass/pam_smb_auth.c
@@ -44,7 +44,7 @@
#define AUTH_RETURN \
do { \
/* Restore application signal handler */ \
- CatchSignal(SIGPIPE, SIGNAL_CAST oldsig_handler); \
+ CatchSignal(SIGPIPE, oldsig_handler); \
if(ret_data) { \
*ret_data = retval; \
pam_set_data( pamh, "smb_setcred_return" \
@@ -92,7 +92,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
/* we need to do this before we call AUTH_RETURN */
/* Getting into places that might use LDAP -- protect the app
from a SIGPIPE it's not expecting */
- oldsig_handler = CatchSignal(SIGPIPE, SIGNAL_CAST SIG_IGN);
+ oldsig_handler = CatchSignal(SIGPIPE, SIG_IGN);
/* get the username */
retval = pam_get_user( pamh, &name, "Username: " );