w3m

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

commit 525edfd656bb9a05926be60479431eeabee2024e
parent 9f2368d42f8c5168605723596a8b5fdc06338164
Author: ukai <ukai>
Date:   Thu,  6 Mar 2003 14:26:14 +0000

fix indent

Diffstat:
Mftp.c | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/ftp.c b/ftp.c @@ -283,7 +283,8 @@ ftp_quit(FTP ftp) return 0; } -static int ex_ftpdir_name_size_date(char *, char **, char **, char **, char **); +static int ex_ftpdir_name_size_date(char *, char **, char **, char **, + char **); #define SERVER_NONE 0 #define UNIXLIKE_SERVER 1 @@ -483,8 +484,8 @@ loadFTPDir(ParsedURL *pu, char *code) Strcat_charp(FTPDIRtmp, "</a></pre>\n"); else Strcat_charp(FTPDIRtmp, "</a></ul>\n"); - Strcat_charp(FTPDIRtmp, "<p>Transfer Interrupted!\n"); - goto ftp_end; + Strcat_charp(FTPDIRtmp, "<p>Transfer Interrupted!\n"); + goto ftp_end; } TRAP_ON; @@ -504,8 +505,9 @@ loadFTPDir(ParsedURL *pu, char *code) max_len = 20; while (tmp = Strfgets(current_ftp.data), tmp->length > 0) { Strchop(tmp); - if ((ftype = ex_ftpdir_name_size_date(tmp->ptr, &name, &link, &date, - &size)) == FTPDIR_NONE) + if ((ftype = + ex_ftpdir_name_size_date(tmp->ptr, &name, &link, &date, + &size)) == FTPDIR_NONE) continue; if (!strcmp(".", name) || !strcmp("..", name)) continue; @@ -653,7 +655,7 @@ ex_ftpdir_name_size_date(char *line, char **name, char **link, char **date, EX_SKIP_SPACE(cp); p = cp; EX_COUNT_DIGIT(cp); - if (*cp == ',') { /* device file ? */ + if (*cp == ',') { /* device file ? */ cp++; EX_SKIP_SPACE(cp); EX_SKIP_NONE_SPACE(cp); @@ -684,7 +686,7 @@ ex_ftpdir_name_size_date(char *line, char **name, char **link, char **date, if ((p = strstr(cp, " -> ")) == NULL) goto done; *name = allocStr(cp, p - cp); - *link = allocStr(p, - 1); + *link = allocStr(p, -1); *sizep = ""; break; case 'd':