summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-02-19 15:29:47 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-23 12:23:43 +0100
commit5ad801beb94d9120e2951e3c5fd1a1115d2dfd35 (patch)
tree53b7a823dd3da56ba4581e4977f4b93bf25f970b /source3/libads
parent38b0e6b4d7375740234fff7834621ce3bb54ada8 (diff)
downloadsamba-5ad801beb94d9120e2951e3c5fd1a1115d2dfd35.tar.gz
samba-5ad801beb94d9120e2951e3c5fd1a1115d2dfd35.tar.bz2
samba-5ad801beb94d9120e2951e3c5fd1a1115d2dfd35.zip
s3-libads: Remove obsolete signal type cast.
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 4005ed6600..33d22d04ec 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -48,7 +48,7 @@ static SIG_ATOMIC_T gotalarm;
Signal function to tell us we timed out.
****************************************************************/
-static void gotalarm_sig(void)
+static void gotalarm_sig(int signum)
{
gotalarm = 1;
}
@@ -63,7 +63,7 @@ static void gotalarm_sig(void)
/* Setup timeout */
gotalarm = 0;
- CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
+ CatchSignal(SIGALRM, gotalarm_sig);
alarm(to);
/* End setup timeout. */
@@ -77,7 +77,7 @@ static void gotalarm_sig(void)
}
/* Teardown timeout. */
- CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
+ CatchSignal(SIGALRM, SIG_IGN);
alarm(0);
return ldp;
@@ -103,7 +103,7 @@ static int ldap_search_with_timeout(LDAP *ld,
/* Setup alarm timeout.... Do we need both of these ? JRA. */
gotalarm = 0;
- CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
+ CatchSignal(SIGALRM, gotalarm_sig);
alarm(lp_ldap_timeout());
/* End setup timeout. */
@@ -112,7 +112,7 @@ static int ldap_search_with_timeout(LDAP *ld,
sizelimit, res);
/* Teardown timeout. */
- CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
+ CatchSignal(SIGALRM, SIG_IGN);
alarm(0);
if (gotalarm != 0)