From 5ad801beb94d9120e2951e3c5fd1a1115d2dfd35 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 19 Feb 2010 15:29:47 +0100 Subject: s3-libads: Remove obsolete signal type cast. --- source3/libads/ldap.c | 10 +++++----- 1 file 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) -- cgit