port fix of install_signal_handler from current libi2ncommon to compat code
authorGerd von Egidy <gerd.von.egidy@intra2net.com>
Tue, 8 Sep 2015 17:02:47 +0000 (19:02 +0200)
committerGerd von Egidy <gerd.von.egidy@intra2net.com>
Tue, 8 Sep 2015 17:02:47 +0000 (19:02 +0200)
utils/i2ncommon/signalfunc.cpp

index cf53642..9b6e939 100644 (file)
@@ -369,7 +369,7 @@ bool install_signal_handler(
 )
 {
     struct sigaction new_action;
-    new_action.sa_sigaction= handler;
+    new_action.sa_sigaction= (void (*)(int, siginfo_t*, void*))(handler);
     sigemptyset( &new_action.sa_mask );
     new_action.sa_flags= SA_SIGINFO;
     new_action.sa_restorer= NULL;