summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-04-15 09:46:29 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-04-15 09:46:29 +0200
commit1cba494e472d280483cc3bf05940efd061846a9e (patch)
tree72e70ae2cbfb9cfaacdc0a84b017a7edd6317539
parent280d6efd2eedbf8bc65ab00978739ab4b7732ab4 (diff)
Use explicit function adresses for sighup_hdlr()
-rw-r--r--src/phmain.c2
-rw-r--r--src/testdisk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/phmain.c b/src/phmain.c
index 2c1a7e3..d403105 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -156,7 +156,7 @@ int main( int argc, char **argv )
sigemptyset(&action.sa_mask);
sigaddset(&action.sa_mask, SIGINT);
sigaddset(&action.sa_mask, SIGHUP);
- action.sa_handler = sighup_hdlr;
+ action.sa_handler = &sighup_hdlr;
action.sa_flags = 0;
if(sigaction(SIGINT, &action, NULL)==-1)
{
diff --git a/src/testdisk.c b/src/testdisk.c
index 3b90155..0c572e5 100644
--- a/src/testdisk.c
+++ b/src/testdisk.c
@@ -231,7 +231,7 @@ int main( int argc, char **argv )
sigemptyset(&action.sa_mask);
sigaddset(&action.sa_mask, SIGINT);
sigaddset(&action.sa_mask, SIGHUP);
- action.sa_handler = sighup_hdlr;
+ action.sa_handler = &sighup_hdlr;
action.sa_flags = 0;
if(sigaction(SIGINT, &action, NULL)==-1)
{