aboutsummaryrefslogtreecommitdiffstats
path: root/ftp.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-08-20 17:49:38 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-08-20 17:49:38 +0000
commitd404404dda40eab419b37f8136920e8edf38d401 (patch)
treece4ccf54721997c7f4385cdc0daeb5f323873e53 /ftp.c
parentDebian Bug#154766: w3m-img: support DirectColor framebuffer visuals? (diff)
downloadw3m-d404404dda40eab419b37f8136920e8edf38d401.tar.gz
w3m-d404404dda40eab419b37f8136920e8edf38d401.zip
Debian Bug#157098: wrong file presentation on large files
from "Eduard Bloch" <blade@debian.org> * configure (clen_t): added (HAVE_STRTOLL): added (HAVE_STRTOQ): added (HAVE_ATOLL): added (HAVE_ATOQ): added * config.h.dist: ditto * file.c (current_content_length): s/int/clen_t/ (loadGeneralFile): s/atoi/strtoclen/ (convert_size): s/int/clen_t/ (convert_size2): s/int/clen_t/ (showProgress): s/int/clen_t/ (loadHTMLstream): s/int/clen_t/ linelen, trbyte (loadBuffer): ditto (getNextPage): s/int/clen_t/ linelen (save2tmp): s/int/clen_t/ linelen, trbye (_MoveFile): s/int/clen_t/ linelen, trbye * fm.h (_Buffer): s/int/clen_t/ linelen, trbye * ftp.c (size_int2str): s/long/clen_t/ (ex_ftpdir_name_size_date): s/long/clen_t/ * indep.c (strtoclen): added * indep.h (strtoclen): added * proto.h (showProgress): s/int/clen_t/ From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'ftp.c')
-rw-r--r--ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ftp.c b/ftp.c
index d3301a7..800ad7a 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,4 +1,4 @@
-/* $Id: ftp.c,v 1.11 2002/02/19 15:50:18 ukai Exp $ */
+/* $Id: ftp.c,v 1.12 2002/08/20 17:49:39 ukai Exp $ */
#include <stdio.h>
#include <pwd.h>
#include <Str.h>
@@ -711,7 +711,7 @@ ftp_system(FTP ftp)
}\
}
-static Str size_int2str(unsigned long);
+static Str size_int2str(clen_t);
static int
ex_ftpdir_name_size_date(char *line, char **name, char **date, char **sizep)
@@ -719,7 +719,7 @@ ex_ftpdir_name_size_date(char *line, char **name, char **date, char **sizep)
int ftype = FTPDIR_NONE;
char *cp, *endp;
Str date_str, name_str, size_str;
- unsigned long size;
+ clen_t size;
if (strlen(line) < 11) {
goto done;
@@ -805,7 +805,7 @@ ex_ftpdir_name_size_date(char *line, char **name, char **date, char **sizep)
}
static Str
-size_int2str(unsigned long size)
+size_int2str(clen_t size)
{
Str size_str;
int unit;