summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-08-17 09:30:19 +0000
committerdes <des@FreeBSD.org>1998-08-17 09:30:19 +0000
commitb31588089070ef6d8f786c0bd15e56303eedd7d8 (patch)
tree97e93e4e1d1747208148ebef971d2118462d48f9 /lib/libfetch/http.c
parent277f8e55a3a42d8efbc3bd38b2ce29003597bc62 (diff)
downloadFreeBSD-src-b31588089070ef6d8f786c0bd15e56303eedd7d8.zip
FreeBSD-src-b31588089070ef6d8f786c0bd15e56303eedd7d8.tar.gz
Commit a bunch of patches that have been accumulating:
- Fix the README to reflect the new status of the ftp code. - Change tons of 'if (xxx < 0)' to 'if (xxx == -1)' - Add two new interface functions - Fix the Makefile so it actually works (yay!) Now the manpage is lagging even further behind... :( Next on the todo list is to clean up the http code.
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 68b3525..9ce86a9 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: http.c,v 1.3 1998/07/11 21:29:08 des Exp $
+ * $Id: http.c,v 1.4 1998/07/12 22:34:40 des Exp $
*/
/*
@@ -357,8 +357,8 @@ fetchGetHTTP(url_t *URL, char *flags)
}
/* if no proxy is configured or could be contacted, try direct */
- if (sd < 0) {
- if ((sd = fetchConnect(URL->host, URL->port)) < 0)
+ if (sd == -1) {
+ if ((sd = fetchConnect(URL->host, URL->port)) == -1)
goto ouch;
}
OpenPOWER on IntegriCloud