run make indent

This commit is contained in:
Fumitoshi UKAI
2002-01-11 20:11:48 +00:00
parent b9cf2cda0d
commit b65130c7f2
+22 -22
View File
@@ -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 "fm.h"
#include <sys/types.h> #include <sys/types.h>
#include "myctype.h" #include "myctype.h"
@@ -1024,29 +1024,29 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
} }
switch (f.scheme) { switch (f.scheme) {
case SCM_FTPDIR: case SCM_FTPDIR:
{ {
Str ftpdir = readFTPDir(&pu); Str ftpdir = readFTPDir(&pu);
if (ftpdir && ftpdir->length > 0) { if (ftpdir && ftpdir->length > 0) {
FILE *src; FILE *src;
tmp = tmpfname(TMPF_SRC, ".html"); tmp = tmpfname(TMPF_SRC, ".html");
pushText(fileToDelete, tmp->ptr); pushText(fileToDelete, tmp->ptr);
src = fopen(tmp->ptr, "w"); src = fopen(tmp->ptr, "w");
if (src) { if (src) {
Strfputs(ftpdir, src); Strfputs(ftpdir, src);
fclose(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;
} }
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;
} }
}
break; break;
case SCM_LOCAL: case SCM_LOCAL:
{ {