summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c
index d9683b3f5..10f52a073 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.93 2001/02/04 15:32:26 stevesk Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.95 2001/02/08 19:30:52 itojun Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -322,7 +322,7 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
322 * identification string. 322 * identification string.
323 */ 323 */
324void 324void
325ssh_exchange_identification() 325ssh_exchange_identification(void)
326{ 326{
327 char buf[256], remote_version[256]; /* must be same size! */ 327 char buf[256], remote_version[256]; /* must be same size! */
328 int remote_major, remote_minor, i, mismatch; 328 int remote_major, remote_minor, i, mismatch;
@@ -431,7 +431,7 @@ read_yes_or_no(const char *prompt, int defval)
431 if (isatty(STDIN_FILENO)) 431 if (isatty(STDIN_FILENO))
432 f = stdin; 432 f = stdin;
433 else 433 else
434 f = fopen("/dev/tty", "rw"); 434 f = fopen(_PATH_TTY, "rw");
435 435
436 if (f == NULL) 436 if (f == NULL)
437 return 0; 437 return 0;