diff options
author | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:17 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:17 +0100 |
commit | 75073d0a8478441cc97a6efa10b566c5fb1dac81 (patch) | |
tree | b73bff259e1b16829ed8b19ee92df2bbbf36ef7d /openbsd-compat/readpassphrase.c | |
parent | c923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (diff) |
New upstream version 1.4.0
Diffstat (limited to 'openbsd-compat/readpassphrase.c')
-rw-r--r-- | openbsd-compat/readpassphrase.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c index dfb3065..8b84190 100644 --- a/openbsd-compat/readpassphrase.c +++ b/openbsd-compat/readpassphrase.c | |||
@@ -52,7 +52,7 @@ | |||
52 | # define _POSIX_VDISABLE VDISABLE | 52 | # define _POSIX_VDISABLE VDISABLE |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | static volatile sig_atomic_t signo[_NSIG]; | 55 | static volatile sig_atomic_t signo[NSIG]; |
56 | 56 | ||
57 | static void handler(int); | 57 | static void handler(int); |
58 | 58 | ||
@@ -73,7 +73,7 @@ readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) | |||
73 | } | 73 | } |
74 | 74 | ||
75 | restart: | 75 | restart: |
76 | for (i = 0; i < _NSIG; i++) | 76 | for (i = 0; i < NSIG; i++) |
77 | signo[i] = 0; | 77 | signo[i] = 0; |
78 | need_restart = 0; | 78 | need_restart = 0; |
79 | /* | 79 | /* |
@@ -177,7 +177,7 @@ restart: | |||
177 | * If we were interrupted by a signal, resend it to ourselves | 177 | * If we were interrupted by a signal, resend it to ourselves |
178 | * now that we have restored the signal handlers. | 178 | * now that we have restored the signal handlers. |
179 | */ | 179 | */ |
180 | for (i = 0; i < _NSIG; i++) { | 180 | for (i = 0; i < NSIG; i++) { |
181 | if (signo[i]) { | 181 | if (signo[i]) { |
182 | kill(getpid(), i); | 182 | kill(getpid(), i); |
183 | switch (i) { | 183 | switch (i) { |