aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>1998-08-17 09:30:19 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>1998-08-17 09:30:19 +0000
commitecc91352992149088d4356e113020a646d7a4db6 (patch)
treefed79bc7d64477fc784bef0fc942c6be43af0189 /lib/libfetch/http.c
parentcd1ab665c8182b0f792aa66ef40cde241d4e1dee (diff)
downloadsrc-ecc91352992149088d4356e113020a646d7a4db6.tar.gz
src-ecc91352992149088d4356e113020a646d7a4db6.zip
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.
Notes
Notes: svn path=/head/; revision=38394
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 68b35254edd3..9ce86a9c8f0f 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;
}