summaryrefslogtreecommitdiff
path: root/source3/lib/util_tdb.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-02-19 15:32:45 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-23 12:23:43 +0100
commitc6c21f489d1288326ee2511d173af2dd7430e62b (patch)
tree0b26cc100a5d7b5988f96b06319390ee43e2d3a7 /source3/lib/util_tdb.c
parent5ad801beb94d9120e2951e3c5fd1a1115d2dfd35 (diff)
downloadsamba-c6c21f489d1288326ee2511d173af2dd7430e62b.tar.gz
samba-c6c21f489d1288326ee2511d173af2dd7430e62b.tar.bz2
samba-c6c21f489d1288326ee2511d173af2dd7430e62b.zip
s3-lib: Remove obsolete signal type cast.
Diffstat (limited to 'source3/lib/util_tdb.c')
-rw-r--r--source3/lib/util_tdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util_tdb.c b/source3/lib/util_tdb.c
index 1d210a1e57..af0573e68e 100644
--- a/source3/lib/util_tdb.c
+++ b/source3/lib/util_tdb.c
@@ -34,7 +34,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;
}
@@ -50,7 +50,7 @@ static int tdb_chainlock_with_timeout_internal( TDB_CONTEXT *tdb, TDB_DATA key,
gotalarm = 0;
if (timeout) {
- CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
+ CatchSignal(SIGALRM, gotalarm_sig);
tdb_setalarm_sigptr(tdb, &gotalarm);
alarm(timeout);
}
@@ -63,7 +63,7 @@ static int tdb_chainlock_with_timeout_internal( TDB_CONTEXT *tdb, TDB_DATA key,
if (timeout) {
alarm(0);
tdb_setalarm_sigptr(tdb, NULL);
- CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
+ CatchSignal(SIGALRM, SIG_IGN);
if (gotalarm && (ret == -1)) {
DEBUG(0,("tdb_chainlock_with_timeout_internal: alarm (%u) timed out for key %s in tdb %s\n",
timeout, key.dptr, tdb_name(tdb)));