summaryrefslogtreecommitdiff
path: root/readpassphrase.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-09 11:23:14 +0100
committersin <sin@2f30.org>2014-10-09 11:23:14 +0100
commitfd4289ead113e4594a35907b2fbda7fdbd24bb5a (patch)
treec06518e034a56fdb7bef723394ed852f4da0315d /readpassphrase.c
parent6ec82b9835037c4dc7938c434f667c4b5b8d8401 (diff)
Use NSIG instead of _NSIG
Diffstat (limited to 'readpassphrase.c')
-rw-r--r--readpassphrase.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/readpassphrase.c b/readpassphrase.c
index 3f1f9bc..4baca34 100644
--- a/readpassphrase.c
+++ b/readpassphrase.c
@@ -42,7 +42,7 @@
# define _POSIX_VDISABLE VDISABLE
#endif
-static volatile sig_atomic_t signo[_NSIG];
+static volatile sig_atomic_t signo[NSIG];
static void handler(int);
@@ -63,7 +63,7 @@ readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags)
}
restart:
- for (i = 0; i < _NSIG; i++)
+ for (i = 0; i < NSIG; i++)
signo[i] = 0;
nr = -1;
save_errno = 0;
@@ -164,7 +164,7 @@ restart:
* If we were interrupted by a signal, resend it to ourselves
* now that we have restored the signal handlers.
*/
- for (i = 0; i < _NSIG; i++) {
+ for (i = 0; i < NSIG; i++) {
if (signo[i]) {
kill(getpid(), i);
switch (i) {