summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorhalex <halex@openbsd.org>2015-03-19 22:05:28 +0000
committerhalex <halex@openbsd.org>2015-03-19 22:05:28 +0000
commit4d066c79ed1bc02184752922cc3538dbcac6a8a7 (patch)
tree72d651cdbd9ecbb8c9d8645482767ed38f6101e5 /lib/libc/net/rcmd.c
parentMore unifdef cleanup: (diff)
downloadwireguard-openbsd-4d066c79ed1bc02184752922cc3538dbcac6a8a7.tar.xz
wireguard-openbsd-4d066c79ed1bc02184752922cc3538dbcac6a8a7.zip
zap #if 0'd code that's been dead since '96
ok todd@
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r--lib/libc/net/rcmd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index afa59dde973..4004882debe 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -177,13 +177,6 @@ rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser,
/* given "af" can be PF_UNSPEC, we need the real af for "s" */
af = r->ai_family;
freeaddrinfo(res);
-#if 0
- /*
- * try to rresvport() to the same port. This will make rresvport()
- * fail it's first bind, resulting in it choosing a random port.
- */
- lport--;
-#endif
if (fd2p == 0) {
write(s, "", 1);
lport = 0;