diff options
author | des <des@FreeBSD.org> | 1998-11-05 19:48:17 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-11-05 19:48:17 +0000 |
commit | e9582417392ed244d57d8d625ab335a3589831fe (patch) | |
tree | f937a3458c7c3f4987fe77d8a77a47b948807065 /lib/libfetch/fetch.h | |
parent | 58045d2d2c66cc826418c2c40735d7130c308a14 (diff) | |
download | FreeBSD-src-e9582417392ed244d57d8d625ab335a3589831fe.zip FreeBSD-src-e9582417392ed244d57d8d625ab335a3589831fe.tar.gz |
First of a series of cleanups to libfetch. Changed files, in
alphabetical order:
Makefile:
Add common.c to SRCS.
Make debugging easier by making 'CFLAGS += -DNDEBUG' conditional on DEBUG
Don't declare struct {ftp,http}err in {ftp,http}err.c; use struct fetcherr
instead.
README:
Remove the todo list, which is out of date anyway.
common.c: (new file)
Gather utility functions in this file.
Merge the error reporting functions intp _fetch_errstring(),
_fetch_seterr() and _fetch_syserr().
Set fetchLastErrCode and fetchLastErrText appropriately when fetchConnect
fails.
common.h: (new file)
Gather internal prototypes and structures in this files.
fetch.3:
Undocument fetchFreeURL().
Document a few more known bugs.
Document fetchLastErrCode and fetchLastErrText.
fetch.c:
Add descriptive comments to all functions that lacked them.
Move fetchConnect() to common.c.
Obviate the need for fetchFreeURL(), and remove it.
fetch.h:
Modify struct url_t so the document part is at the end.
ftp.c:
Remove code that is duplicated elsewhere.
http.c:
Remove code that is duplicated elsewhere.
Prompted by: jkh
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r-- | lib/libfetch/fetch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h index 377edad..cc39e36 100644 --- a/lib/libfetch/fetch.h +++ b/lib/libfetch/fetch.h @@ -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: fetch.h,v 1.3 1998/07/11 21:29:08 des Exp $ + * $Id: fetch.h,v 1.4 1998/08/17 09:30:19 des Exp $ */ #ifndef _FETCH_H_INCLUDED @@ -45,8 +45,8 @@ struct url_s { char user[URL_USERLEN+1]; char pwd[URL_PWDLEN+1]; char host[MAXHOSTNAMELEN+1]; - char *doc; - int port; + int port; + char doc[2]; }; typedef struct url_s url_t; |