s3-nmbd: Remove obsolete signal type cast.
[ira/wip.git] / source3 / nmbd / nmbd_subnetdb.c
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;
        }