diff options
author | des <des@FreeBSD.org> | 2000-11-27 13:41:55 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-11-27 13:41:55 +0000 |
commit | 7affcbe9bea8f05e53b122665b694e9657a4c7c5 (patch) | |
tree | 4c0f8ea28db432dbeb013c8c20874be930f68ec6 /lib/libfetch | |
parent | 9d14204cac162509b967636912f469b09434b1b8 (diff) | |
download | FreeBSD-src-7affcbe9bea8f05e53b122665b694e9657a4c7c5.zip FreeBSD-src-7affcbe9bea8f05e53b122665b694e9657a4c7c5.tar.gz |
Don't try to get the proxy port number from /etc/services.
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/common.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 4d05a6b6..459154f 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -190,10 +190,6 @@ _fetch_default_port(char *scheme) int _fetch_default_proxy_port(char *scheme) { - struct servent *se; - - if ((se = getservbyname(scheme, "tcp")) != NULL) - return ntohs(se->s_port); if (strcasecmp(scheme, SCHEME_FTP) == 0) return FTP_DEFAULT_PROXY_PORT; if (strcasecmp(scheme, SCHEME_HTTP) == 0) |