summaryrefslogtreecommitdiff
path: root/src/libstddjb/selfpipe_trapset.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-04-28 12:12:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-04-28 12:12:06 +0000
commitb15c4329b10e422d85673e1708ce20bb0116598e (patch)
treeed61c1856ddc3e473f0b5d608bfad93299f461a6 /src/libstddjb/selfpipe_trapset.c
parent94caf2cee5c03e037c465648eac8cb1dd32c7c73 (diff)
downloadskalibs-b15c4329b10e422d85673e1708ce20bb0116598e.tar.xz
Change SKALIBS_NSIG to SKALIBS_DEFAULT_NSIG and NSIG to SKALIBS_NSIG to accommodate OpenBSD snowflakiness
Diffstat (limited to 'src/libstddjb/selfpipe_trapset.c')
-rw-r--r--src/libstddjb/selfpipe_trapset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstddjb/selfpipe_trapset.c b/src/libstddjb/selfpipe_trapset.c
index 519e37b..ad5ba10 100644
--- a/src/libstddjb/selfpipe_trapset.c
+++ b/src/libstddjb/selfpipe_trapset.c
@@ -40,7 +40,7 @@ int selfpipe_trapset (sigset_t const *set)
{
unsigned int i = 1 ;
if (selfpipe_fd < 0) return (errno = EBADF, -1) ;
- for (; i < NSIG ; i++)
+ for (; i < SKALIBS_NSIG ; i++)
{
int h = sigismember(set, i) ;
if (h < 0) continue ;
@@ -53,7 +53,7 @@ int selfpipe_trapset (sigset_t const *set)
if (sig_restore(i) < 0) break ;
}
}
- if (i < NSIG)
+ if (i < SKALIBS_NSIG)
{
int e = errno ;
sig_restoreto(set, i) ;