diff options
author | 2002-07-18 18:52:36 +0000 | |
---|---|---|
committer | 2002-07-18 18:52:36 +0000 | |
commit | 4d7b70377f85bcbc2f33fb40c65a96306b969164 (patch) | |
tree | 0ec2ebd5e37d0d452f6a58157a6c30fb71a50b85 | |
parent | regen (diff) | |
download | wireguard-openbsd-4d7b70377f85bcbc2f33fb40c65a96306b969164.tar.xz wireguard-openbsd-4d7b70377f85bcbc2f33fb40c65a96306b969164.zip |
Remove unused calls to inet_addr()
-rw-r--r-- | usr.sbin/ppp/ppp/tcp.c | 3 | ||||
-rw-r--r-- | usr.sbin/ppp/ppp/udp.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ppp/tcp.c b/usr.sbin/ppp/ppp/tcp.c index 239a87be676..715af52434f 100644 --- a/usr.sbin/ppp/ppp/tcp.c +++ b/usr.sbin/ppp/ppp/tcp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: tcp.c,v 1.15 2002/05/16 01:13:39 brian Exp $ + * $OpenBSD: tcp.c,v 1.16 2002/07/18 18:52:36 brian Exp $ */ #include <sys/types.h> @@ -66,7 +66,6 @@ tcp_OpenConnection(const char *name, char *host, char *port) struct servent *sp; dest.sin_family = AF_INET; - dest.sin_addr.s_addr = inet_addr(host); dest.sin_addr = GetIpAddr(host); if (dest.sin_addr.s_addr == INADDR_NONE) { log_Printf(LogWARN, "%s: %s: unknown host\n", name, host); diff --git a/usr.sbin/ppp/ppp/udp.c b/usr.sbin/ppp/ppp/udp.c index 61930f010ad..57fec830616 100644 --- a/usr.sbin/ppp/ppp/udp.c +++ b/usr.sbin/ppp/ppp/udp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: udp.c,v 1.15 2002/05/16 01:13:39 brian Exp $ + * $OpenBSD: udp.c,v 1.16 2002/07/18 18:52:36 brian Exp $ */ #include <sys/types.h> @@ -209,7 +209,6 @@ udp_CreateDevice(struct physical *p, char *host, char *port) } dev->sock.sin_family = AF_INET; - dev->sock.sin_addr.s_addr = inet_addr(host); dev->sock.sin_addr = GetIpAddr(host); if (dev->sock.sin_addr.s_addr == INADDR_NONE) { log_Printf(LogWARN, "%s: %s: unknown host\n", p->link.name, host); |