w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit d50955fc17d2a167810677769033c4148ab20568
parent ab9c82bdc8b1b99f783e787a0373c88b312d4f95
Author: ukai <ukai>
Date:   Fri, 11 Jan 2002 20:11:48 +0000

run make indent

Diffstat:
Mfile.c | 42+++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/file.c b/file.c @@ -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: {