summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{