Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib Remove a useless loo...
details: https://anonhg.NetBSD.org/src/rev/b385f3d05ea2
branches: trunk
changeset: 351608:b385f3d05ea2
user: khorben <khorben%NetBSD.org@localhost>
date: Mon Feb 20 01:33:28 2017 +0000
description:
Remove a useless loop around getpass()
According to getpass(3), this library function cannot return NULL.
Verified with a source code inspection.
diffstat:
crypto/external/bsd/netpgp/dist/src/lib/reader.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r b360a7031d1f -r b385f3d05ea2 crypto/external/bsd/netpgp/dist/src/lib/reader.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/reader.c Mon Feb 20 01:21:47 2017 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/reader.c Mon Feb 20 01:33:28 2017 +0000
@@ -54,7 +54,7 @@
#if defined(__NetBSD__)
__COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: reader.c,v 1.49 2012/03/05 02:20:18 christos Exp $");
+__RCSID("$NetBSD: reader.c,v 1.50 2017/02/20 01:33:28 khorben Exp $");
#endif
#include <sys/types.h>
@@ -162,8 +162,7 @@
char *p;
if (in == NULL) {
- while ((p = getpass("netpgp passphrase: ")) == NULL) {
- }
+ p = getpass("netpgp passphrase: ");
(void) snprintf(phrase, size, "%s", p);
} else {
if (fgets(phrase, (int)size, in) == NULL) {
Home |
Main Index |
Thread Index |
Old Index