s3-nmbd: Remove obsolete signal type cast.
authorAndreas Schneider <asn@redhat.com>
Fri, 19 Feb 2010 14:28:11 +0000 (15:28 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Feb 2010 11:23:42 +0000 (12:23 +0100)
source3/nmbd/asyncdns.c
source3/nmbd/nmbd.c
source3/nmbd/nmbd_subnetdb.c

index 8b49f510a14eed18aff6dfe49ebe870d97cd4732..21ac5a0ff44a8f86835fd1523f50faf4e0179bdc 100644 (file)
@@ -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))) {
index 3b51a78dfe8b29a7f5d69aab0ae5ff92d7081b41..148361f9f93484748d2031af7892b75c6a0ff20b 100644 (file)
@@ -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.
index 703e229052c3d3e986cd2df20a92772584cd4326..4fb142509462b44225eaf5c5c1a749de49779f13 100644 (file)
@@ -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;
        }