aboutsummaryrefslogtreecommitdiffstats
path: root/src/sigs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sigs.c')
-rw-r--r--src/sigs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sigs.c b/src/sigs.c
index a5f7e54..a4f8140 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -61,7 +61,7 @@ generic_hdlr (int sig)
case SIGWINCH:
resize = 1;
clearok (curscr, TRUE);
- (void)ungetch (KEY_RESIZE);
+ ungetch (KEY_RESIZE);
break;
case SIGTERM:
if (unlink (path_cpid) != 0)
@@ -83,7 +83,7 @@ sigs_set_hdlr (int sig, void (*handler)(int))
sigemptyset (&sa.sa_mask);
sa.sa_handler = handler;
sa.sa_flags = 0;
- if (sigaction (sig, &sa, (struct sigaction *)0) == -1)
+ if (sigaction (sig, &sa, NULL) == -1)
{
ERROR_MSG (_("Error setting signal #%d : %s\n"),
sig, strerror (errno));