diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-04-16 01:40:22 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-04-16 01:40:22 -0400 |
commit | e4409c408eedf320b8845cafdd62b664bec1afd8 (patch) | |
tree | ccce96259ffd0a5edf9dc05e49262aaf5854fd99 /WWW/Library/Implementation/HTFTP.c | |
parent | 36a66292ee2ec3530d776892d22d6c5ace810ae0 (diff) | |
download | lynx-snapshots-e4409c408eedf320b8845cafdd62b664bec1afd8.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-6
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index c90b3473..8be44d44 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -71,6 +71,10 @@ BUGS: @@@ Limit connection cache size! ** same time. */ +#ifdef DJGPP +#define u_long unsigned long +#endif + #include "HTUtils.h" #include "tcp.h" @@ -108,12 +112,6 @@ BUGS: @@@ Limit connection cache size! #include "LYLeaks.h" -#ifdef REMOVED_CODE -extern char *malloc(); -extern void free(); -extern char *strncpy(); -#endif /* REMOVED_CODE */ - typedef struct _connection { struct _connection * next; /* Link on list */ u_long addr; /* IP address */ @@ -2775,7 +2773,7 @@ PUBLIC int HTFTPLoad ARGS4( } else { format = HTFileFormat(filename, &encoding); } - format = HTCharsetFormat(format, anchor); + format = HTCharsetFormat(format, anchor, -1); binary = (encoding != HTAtom_for("8bit") && encoding != HTAtom_for("7bit")); if (!binary && @@ -3203,7 +3201,7 @@ listen: FileName[len - 2] = '\0'; format = HTFileFormat(FileName, &encoding); - format = HTCharsetFormat(format, anchor); + format = HTCharsetFormat(format, anchor, -1); StrAllocCopy(anchor->content_type, format->name); StrAllocCopy(anchor->content_encoding, "x-compress"); format = HTAtom_for("www/compressed"); @@ -3214,7 +3212,7 @@ listen: FileName[len - 3] == '_') { FileName[len - 3] = '\0'; format = HTFileFormat(FileName, &encoding); - format = HTCharsetFormat(format, anchor); + format = HTCharsetFormat(format, anchor, -1); StrAllocCopy(anchor->content_type, format->name); StrAllocCopy(anchor->content_encoding, "x-gzip"); format = HTAtom_for("www/compressed"); |