summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
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 /src/phmain.c
parent280d6efd2eedbf8bc65ab00978739ab4b7732ab4 (diff)
Use explicit function adresses for sighup_hdlr()
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c2
1 files changed, 1 insertions, 1 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)
{