summaryrefslogtreecommitdiff
path: root/openbsd-compat/readpassphrase.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/readpassphrase.c')
-rw-r--r--openbsd-compat/readpassphrase.c6
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
55static volatile sig_atomic_t signo[_NSIG]; 55static volatile sig_atomic_t signo[NSIG];
56 56
57static void handler(int); 57static void handler(int);
58 58
@@ -73,7 +73,7 @@ readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags)
73 } 73 }
74 74
75restart: 75restart:
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) {