summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-02-17 17:10:16 +0000
committerKevin Steves <stevesk@pobox.com>2001-02-17 17:10:16 +0000
commite74ebd03c23896f3f3d3f00cf5cc44c3f16c4c43 (patch)
treea99c8b260b92a28416ccb77e928d6306d71a6bd9 /misc.c
parent970c009b8e9a8187e06c6627c448483765c3f1c1 (diff)
KNF
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index ad6d8864..47de8735 100644
--- a/misc.c
+++ b/misc.c
@@ -102,10 +102,10 @@ mysignal(int sig, mysig_t act)
#ifdef HAVE_SIGACTION
struct sigaction sa, osa;
- if (sigaction(sig, 0, &osa) == -1)
+ if (sigaction(sig, NULL, &osa) == -1)
return (mysig_t) -1;
if (osa.sa_handler != act) {
- memset(&sa, 0, sizeof sa);
+ memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
#ifdef SA_RESTART
@@ -113,7 +113,7 @@ mysignal(int sig, mysig_t act)
sa.sa_flags |= SA_RESTART;
#endif
sa.sa_handler = act;
- if (sigaction(sig, &sa, 0) == -1)
+ if (sigaction(sig, &sa, NULL) == -1)
return (mysig_t) -1;
}
return (osa.sa_handler);