summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-02-19 15:28:11 +0100
committerStefan Metzmacher <metze@samba.org>2010-02-23 12:23:42 +0100
commit38b0e6b4d7375740234fff7834621ce3bb54ada8 (patch)
tree63e7b0133ff68c01c25d62db6ba6c161d5211322 /source3
parent069350d7e4d9e13ea5451273db51023e972a9373 (diff)
downloadsamba-38b0e6b4d7375740234fff7834621ce3bb54ada8.tar.gz
samba-38b0e6b4d7375740234fff7834621ce3bb54ada8.tar.bz2
samba-38b0e6b4d7375740234fff7834621ce3bb54ada8.zip
s3-nmbd: Remove obsolete signal type cast.
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/asyncdns.c2
-rw-r--r--source3/nmbd/nmbd.c4
-rw-r--r--source3/nmbd/nmbd_subnetdb.c8
3 files changed, 7 insertions, 7 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c
index 8b49f510a1..21ac5a0ff4 100644
--- a/source3/nmbd/asyncdns.c
+++ b/source3/nmbd/asyncdns.c
@@ -162,7 +162,7 @@ void start_async_dns(void)
CatchSignal(SIGUSR2, SIG_IGN);
CatchSignal(SIGUSR1, SIG_IGN);
CatchSignal(SIGHUP, SIG_IGN);
- CatchSignal(SIGTERM, SIGNAL_CAST sig_term );
+ CatchSignal(SIGTERM, sig_term);
if (!NT_STATUS_IS_OK(reinit_after_fork(nmbd_messaging_context(),
nmbd_event_context(), true))) {
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 3b51a78dfe..148361f9f9 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -337,7 +337,7 @@ static void reload_interfaces(time_t t)
* Whilst we're waiting for an interface, allow SIGTERM to
* cause us to exit.
*/
- saved_handler = CatchSignal( SIGTERM, SIGNAL_CAST SIG_DFL );
+ saved_handler = CatchSignal(SIGTERM, SIG_DFL);
/* We only count IPv4, non-loopback interfaces here. */
while (iface_count_v4_nl() == 0) {
@@ -345,7 +345,7 @@ static void reload_interfaces(time_t t)
load_interfaces();
}
- CatchSignal( SIGTERM, SIGNAL_CAST saved_handler );
+ CatchSignal(SIGTERM, saved_handler);
/*
* We got an interface, go back to blocking term.
diff --git a/source3/nmbd/nmbd_subnetdb.c b/source3/nmbd/nmbd_subnetdb.c
index 703e229052..4fb1425094 100644
--- a/source3/nmbd/nmbd_subnetdb.c
+++ b/source3/nmbd/nmbd_subnetdb.c
@@ -251,7 +251,7 @@ bool create_subnets(void)
* cause us to exit.
*/
- saved_handler = CatchSignal( SIGTERM, SIGNAL_CAST SIG_DFL );
+ saved_handler = CatchSignal(SIGTERM, SIG_DFL);
sleep(5);
load_interfaces();
@@ -260,7 +260,7 @@ bool create_subnets(void)
* We got an interface, restore our normal term handler.
*/
- CatchSignal( SIGTERM, SIGNAL_CAST saved_handler );
+ CatchSignal(SIGTERM, saved_handler);
}
/*
@@ -312,12 +312,12 @@ bool create_subnets(void)
"given interfaces. Is your interface line in "
"smb.conf correct ?\n"));
- saved_handler = CatchSignal( SIGTERM, SIGNAL_CAST SIG_DFL );
+ saved_handler = CatchSignal(SIGTERM, SIG_DFL);
sleep(5);
load_interfaces();
- CatchSignal( SIGTERM, SIGNAL_CAST saved_handler );
+ CatchSignal(SIGTERM, saved_handler);
goto try_interfaces_again;
}