diff options
author | 2001-02-08 19:30:51 +0000 | |
---|---|---|
committer | 2001-02-08 19:30:51 +0000 | |
commit | fd1ec3d2fd5cb57baae503a9c977a1308cb64f90 (patch) | |
tree | 6b501533ef8a71a77330c5cd8d7a33590c5a9689 /usr.bin/ssh/sshconnect.c | |
parent | drop references to ssl(8). markus ok (diff) | |
download | wireguard-openbsd-fd1ec3d2fd5cb57baae503a9c977a1308cb64f90.tar.xz wireguard-openbsd-fd1ec3d2fd5cb57baae503a9c977a1308cb64f90.zip |
sync with netbsd tree changes.
- more strict prototypes, include necessary headers
- use paths.h/pathnames.h decls
- size_t typecase to int -> u_long
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index 3b9dc13a81b..8f18e7ec9b6 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect.c,v 1.94 2001/02/08 10:47:04 itojun Exp $"); +RCSID("$OpenBSD: sshconnect.c,v 1.95 2001/02/08 19:30:52 itojun Exp $"); #include <openssl/bn.h> @@ -318,7 +318,7 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr, * identification string. */ void -ssh_exchange_identification() +ssh_exchange_identification(void) { char buf[256], remote_version[256]; /* must be same size! */ int remote_major, remote_minor, i, mismatch; @@ -427,7 +427,7 @@ read_yes_or_no(const char *prompt, int defval) if (isatty(STDIN_FILENO)) f = stdin; else - f = fopen("/dev/tty", "rw"); + f = fopen(_PATH_TTY, "rw"); if (f == NULL) return 0; |