From 9403f3dc7e977d53efe1439ec20461bbc4935fe5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 Mar 2004 01:57:28 +0000 Subject: switch from SIG_ATOMIC_T to sig_atomic_t (This used to be commit b881b72cb9cb5a4a8ad27b621e8cbe9dcfa7ba7f) --- source4/lib/tdb/tdb.c | 4 ++-- source4/lib/tdb/tdb.h | 2 +- source4/lib/tdb/tdbutil.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/tdb/tdb.c b/source4/lib/tdb/tdb.c index 0bcf4d5cb8..5367842cbb 100644 --- a/source4/lib/tdb/tdb.c +++ b/source4/lib/tdb/tdb.c @@ -194,9 +194,9 @@ struct list_struct { a blocking lock on SIGALRM. ***************************************************************/ -static SIG_ATOMIC_T *palarm_fired; +static sig_atomic_t *palarm_fired; -void tdb_set_lock_alarm(SIG_ATOMIC_T *palarm) +void tdb_set_lock_alarm(sig_atomic_t *palarm) { palarm_fired = palarm; } diff --git a/source4/lib/tdb/tdb.h b/source4/lib/tdb/tdb.h index c9faa0464f..169de5f87d 100644 --- a/source4/lib/tdb/tdb.h +++ b/source4/lib/tdb/tdb.h @@ -134,7 +134,7 @@ int tdb_lockall(TDB_CONTEXT *tdb); void tdb_unlockall(TDB_CONTEXT *tdb); /* Low level locking functions: use with care */ -void tdb_set_lock_alarm(SIG_ATOMIC_T *palarm); +void tdb_set_lock_alarm(sig_atomic_t *palarm); int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key); diff --git a/source4/lib/tdb/tdbutil.c b/source4/lib/tdb/tdbutil.c index 3c22333b4d..4a4423d2ce 100644 --- a/source4/lib/tdb/tdbutil.c +++ b/source4/lib/tdb/tdbutil.c @@ -24,7 +24,7 @@ /* these are little tdb utility functions that are meant to make dealing with a tdb database a little less cumbersome in Samba */ -static SIG_ATOMIC_T gotalarm; +static sig_atomic_t gotalarm; /*************************************************************** Signal function to tell us we timed out. -- cgit