summaryrefslogtreecommitdiff
path: root/source4/lib/tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-03-28 01:57:28 +0000
committerAndrew Tridgell <tridge@samba.org>2004-03-28 01:57:28 +0000
commit9403f3dc7e977d53efe1439ec20461bbc4935fe5 (patch)
treefbfa6cb26b98ffcc7bae342b6f886d37a68b7bc2 /source4/lib/tdb
parent3744324dbd29ca3c732a3d82fab1c0ee94598eaf (diff)
downloadsamba-9403f3dc7e977d53efe1439ec20461bbc4935fe5.tar.gz
samba-9403f3dc7e977d53efe1439ec20461bbc4935fe5.tar.bz2
samba-9403f3dc7e977d53efe1439ec20461bbc4935fe5.zip
switch from SIG_ATOMIC_T to sig_atomic_t
(This used to be commit b881b72cb9cb5a4a8ad27b621e8cbe9dcfa7ba7f)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r--source4/lib/tdb/tdb.c4
-rw-r--r--source4/lib/tdb/tdb.h2
-rw-r--r--source4/lib/tdb/tdbutil.c2
3 files changed, 4 insertions, 4 deletions
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.