diff options
author | Colin Watson <cjwatson@debian.org> | 2020-04-17 20:57:34 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-04-18 09:48:21 +0100 |
commit | df7226c4b684fd229dc046388225c69ded877721 (patch) | |
tree | e69014e1ee868c4ec178b8a36baae7de31786beb /openbsd-compat/readpassphrase.c | |
parent | f794345c2d734f593da8ed7754e5dbb5809c688d (diff) | |
parent | 75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff) |
Update upstream source from tag 'upstream/1.4.0'
Update to upstream version '1.4.0'
with Debian dir 64889867df57bd13ea0cb964223697d378d391ce
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) { |