From c5ab6afac874388050ff617dc754f0917bab54ec Mon Sep 17 00:00:00 2001 From: otto <> Date: Wed, 1 Feb 2006 21:33:14 +0000 Subject: remove obsolete code; from Ray Lai in PR 4998; ok tedu@ beck@ --- src/usr.bin/nc/netcat.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index cec87ff731..bea1b79ba5 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.86 2006/01/25 23:21:37 djm Exp $ */ +/* $OpenBSD: netcat.c,v 1.87 2006/02/01 21:33:14 otto Exp $ */ /* * Copyright (c) 2001 Eric Jackson * @@ -491,13 +491,6 @@ remote_connect(const char *host, const char *port, struct addrinfo hints) if (sflag || pflag) { struct addrinfo ahints, *ares; - if (!(sflag && pflag)) { - if (!sflag) - sflag = NULL; - else - pflag = NULL; - } - memset(&ahints, 0, sizeof(struct addrinfo)); ahints.ai_family = res0->ai_family; ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; -- cgit v1.2.3-55-g6feb