diff options
author | brian <brian@FreeBSD.org> | 2002-07-18 18:50:05 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-07-18 18:50:05 +0000 |
commit | 0ffeeffe3e5a03f38ce2b97a6418df9cd2eb8eb2 (patch) | |
tree | e50cbe187b0e003dedc77fc8faa36918ed8d8234 /usr.sbin/ppp | |
parent | 8d142e42ff9ce50800daee2233a4948fc06be370 (diff) | |
download | FreeBSD-src-0ffeeffe3e5a03f38ce2b97a6418df9cd2eb8eb2.zip FreeBSD-src-0ffeeffe3e5a03f38ce2b97a6418df9cd2eb8eb2.tar.gz |
Remove unused calls to inet_addr()
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/tcp.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/udp.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tcp.c b/usr.sbin/ppp/tcp.c index 9a45e98..65679f0 100644 --- a/usr.sbin/ppp/tcp.c +++ b/usr.sbin/ppp/tcp.c @@ -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/udp.c b/usr.sbin/ppp/udp.c index 47cab3f..3a5fe06 100644 --- a/usr.sbin/ppp/udp.c +++ b/usr.sbin/ppp/udp.c @@ -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); |