diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-10-19 03:23:16 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-10-19 03:23:16 +1100 |
commit | f901440cc844062c9bab0183d133f7ccc58ac3a5 (patch) | |
tree | b71988090a673d5025be2fec1ccad7deb426f65f /openbsd-compat | |
parent | 032147b69527e5448a511049b2d43dbcae582624 (diff) |
Import readpassphrase.c rev 1.25.
Wrap <readpassphrase.h> so internal calls go direct and
readpassphrase is weak.
(DEF_WEAK is a no-op in portable.)
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/readpassphrase.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c index c99b4e20c..783cc9e67 100644 --- a/openbsd-compat/readpassphrase.c +++ b/openbsd-compat/readpassphrase.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readpassphrase.c,v 1.24 2013/11/24 23:51:29 deraadt Exp $ */ | 1 | /* $OpenBSD: readpassphrase.c,v 1.25 2015/09/14 10:45:27 guenther Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000-2002, 2007, 2010 | 4 | * Copyright (c) 2000-2002, 2007, 2010 |
@@ -195,6 +195,7 @@ restart: | |||
195 | errno = save_errno; | 195 | errno = save_errno; |
196 | return(nr == -1 ? NULL : buf); | 196 | return(nr == -1 ? NULL : buf); |
197 | } | 197 | } |
198 | DEF_WEAK(readpassphrase); | ||
198 | 199 | ||
199 | #if 0 | 200 | #if 0 |
200 | char * | 201 | char * |