Print this page
8513 make: incomplete function cast in libbsd
*** 19,28 ****
--- 19,30 ----
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2017 RackTop Systems.
*/
#include <signal.h>
*** 46,56 ****
#else
struct sigaction new_action;
struct sigaction old_action;
new_action.sa_flags = SA_SIGINFO;
! new_action.sa_handler = (void (*) ()) Handler;
(void) sigemptyset (&new_action.sa_mask);
(void) sigaddset (&new_action.sa_mask, Signal);
(void) sigaction (Signal, &new_action, &old_action);
--- 48,58 ----
#else
struct sigaction new_action;
struct sigaction old_action;
new_action.sa_flags = SA_SIGINFO;
! new_action.sa_handler = (void (*) (int)) Handler;
(void) sigemptyset (&new_action.sa_mask);
(void) sigaddset (&new_action.sa_mask, Signal);
(void) sigaction (Signal, &new_action, &old_action);