summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-keyscan.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-01-08 22:03:23 +0000
committermarkus <markus@openbsd.org>2001-01-08 22:03:23 +0000
commitcc63191cf12f30c55043feca57d7eb4fd3f40d3a (patch)
tree4aa1c9b61dd4315996bc5077461096dc9faebad4 /usr.bin/ssh/ssh-keyscan.c
parentmore cleanups and fixes from stevesk@pobox.com: (diff)
downloadwireguard-openbsd-cc63191cf12f30c55043feca57d7eb4fd3f40d3a.tar.xz
wireguard-openbsd-cc63191cf12f30c55043feca57d7eb4fd3f40d3a.zip
O_NDELAY -> O_NONBLOCK; thanks stevesk@pobox.com
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r--usr.bin/ssh/ssh-keyscan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c
index d66df82c5a4..02d56ade245 100644
--- a/usr.bin/ssh/ssh-keyscan.c
+++ b/usr.bin/ssh/ssh-keyscan.c
@@ -8,7 +8,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-keyscan.c,v 1.6 2000/12/19 23:17:58 markus Exp $");
+RCSID("$OpenBSD: ssh-keyscan.c,v 1.7 2001/01/08 22:03:23 markus Exp $");
#include <sys/queue.h>
#include <errno.h>
@@ -290,7 +290,7 @@ tcpconnect(char *host)
error("socket: %s", strerror(errno));
continue;
}
- if (fcntl(s, F_SETFL, O_NDELAY) < 0)
+ if (fcntl(s, F_SETFL, O_NONBLOCK) < 0)
fatal("F_SETFL: %s", strerror(errno));
if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0 &&
errno != EINPROGRESS)