CVS: is/lib httpclient.c,1.3,1.4
Chen Yang <[email protected]> Tue, 25 Feb 2003 22:14:05 -0800
| Newsgroups | gmane.comp.file-systems.intermezzo.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/intermezzo/is/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv18079/izo/lib
Modified Files:
httpclient.c
Log Message:
fs25/super.c: presto_get_sb() return error resulting
- return NULL;
+ return ERR_PTR(-EINVAL);
lib/httpclient.c: fixed problems with libcurl 7.9.8
remove the misuse of CURLOPT_RANGE
added intact curl session for communication
Index: httpclient.c
===================================================================
RCS file: /cvsroot/intermezzo/is/lib/httpclient.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -U2 -r1.3 -r1.4
--- httpclient.c 26 Jun 2002 16:06:07 -0000 1.3
+++ httpclient.c 26 Feb 2003 06:14:03 -0000 1.4
@@ -197,6 +197,4 @@
goto done;
}
- else
- curl_easy_setopt(handle, CURLOPT_RANGE, "");
/* do fetch */
@@ -207,4 +205,5 @@
g_free(range);
+ curl_easy_cleanup(handle);
return rc;
}
@@ -258,6 +257,4 @@
goto done;
}
- else
- curl_easy_setopt(handle, CURLOPT_RANGE, "");
/* do fetch */
@@ -274,4 +271,5 @@
g_free(range);
+ curl_easy_cleanup(handle);
return rc;
}
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp