aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-11 20:11:48 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-11 20:11:48 +0000
commitb65130c7f262e17b8c2d7adfdda1cf2131939710 (patch)
treeffd7abfdbf0a5c10399769ead581e5f40ed64fa7
parent[w3m-dev 02822] Print FTP directory list for -dump_extra option (diff)
downloadw3m-b65130c7f262e17b8c2d7adfdda1cf2131939710.tar.gz
w3m-b65130c7f262e17b8c2d7adfdda1cf2131939710.zip
run make indent
Diffstat (limited to '')
-rw-r--r--file.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/file.c b/file.c
index 615b412..7d57f80 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.40 2002/01/11 20:05:58 ukai Exp $ */
+/* $Id: file.c,v 1.41 2002/01/11 20:11:48 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1024,29 +1024,29 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
}
switch (f.scheme) {
case SCM_FTPDIR:
- {
- Str ftpdir = readFTPDir(&pu);
- if (ftpdir && ftpdir->length > 0) {
- FILE *src;
- tmp = tmpfname(TMPF_SRC, ".html");
- pushText(fileToDelete, tmp->ptr);
- src = fopen(tmp->ptr, "w");
- if (src) {
- Strfputs(ftpdir, src);
- fclose(src);
- }
- b = loadHTMLString(ftpdir);
- if (b) {
- if (b->currentURL.host == NULL
- && b->currentURL.file == NULL)
- copyParsedURL(&b->currentURL, &pu);
- b->real_scheme = pu.scheme;
- if (src)
- b->sourcefile = tmp->ptr;
+ {
+ Str ftpdir = readFTPDir(&pu);
+ if (ftpdir && ftpdir->length > 0) {
+ FILE *src;
+ tmp = tmpfname(TMPF_SRC, ".html");
+ pushText(fileToDelete, tmp->ptr);
+ src = fopen(tmp->ptr, "w");
+ if (src) {
+ Strfputs(ftpdir, src);
+ fclose(src);
+ }
+ b = loadHTMLString(ftpdir);
+ if (b) {
+ if (b->currentURL.host == NULL
+ && b->currentURL.file == NULL)
+ copyParsedURL(&b->currentURL, &pu);
+ b->real_scheme = pu.scheme;
+ if (src)
+ b->sourcefile = tmp->ptr;
+ }
+ return b;
}
- return b;
}
- }
break;
case SCM_LOCAL:
{