w3m

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

commit 037a3be2ec10a79d30f7c8b3e2f393ca9e29e1d9
parent f60cc30e3db6667133f9379871f26c09f0d42395
Author: ukai <ukai>
Date:   Sat, 14 Dec 2002 15:26:44 +0000

fix indent

Diffstat:
Mdisplay.c | 8++++----
Mfile.c | 9+++++----
Mftp.c | 3+--
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/display.c b/display.c @@ -248,7 +248,7 @@ make_lastline_link(Buffer *buf, char *title, char *url) if (url) Strcat_charp(s, " "); l -= s->length; - if (l <= 0) + if (l <= 0) return s; } if (!url) @@ -283,7 +283,7 @@ make_lastline_message(Buffer *buf) #ifdef USE_IMAGE MapArea *a = retrieveCurrentMapArea(buf); if (a) - s = make_lastline_link(buf, a->alt, a->url); + s = make_lastline_link(buf, a->alt, a->url); else #endif { @@ -297,7 +297,7 @@ make_lastline_message(Buffer *buf) p = a_img->title; } if (p || a) - s = make_lastline_link(buf, p, a ? a->url : NULL); + s = make_lastline_link(buf, p, a ? a->url : NULL); } if (s && s->length >= COLS - 3) return s; @@ -331,7 +331,7 @@ make_lastline_message(Buffer *buf) char *p; int i; for (p = msg->ptr; *p; p += i) { - i = get_mclen(get_mctype(p)); + i = get_mclen(get_mctype(p)); l -= i; if (l < 0) break; diff --git a/file.c b/file.c @@ -1898,7 +1898,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, if (PreserveTimestamp && !stat(pu.real_file, &st)) f.modtime = st.st_mtime; file = conv_from_system(guess_save_name(NULL, pu.real_file)); - } else + } + else file = guess_save_name(t_buf, pu.file); doFileSave(f, file); if (f.scheme == SCM_FTP) @@ -7866,9 +7867,9 @@ guess_save_name(Buffer *buf, char *path) matchattr(q, "filename", 8, &name)) path = name->ptr; else if ((p = checkHeader(buf, "Content-Type:")) != NULL && - (q = strcasestr(p, "name")) != NULL && - (q == p || IS_SPACE(*(q - 1)) || *(q - 1) == ';') && - matchattr(q, "name", 4, &name)) + (q = strcasestr(p, "name")) != NULL && + (q == p || IS_SPACE(*(q - 1)) || *(q - 1) == ';') && + matchattr(q, "name", 4, &name)) path = name->ptr; } return guess_filename(path); diff --git a/ftp.c b/ftp.c @@ -366,8 +366,7 @@ getFtpModtime(FTP ftp, char *path) tmp = read_response(ftp); if (atoi(tmp->ptr) != 213) return -1; - for (p = tmp->ptr + 4; *p && *p == ' '; p++) - ; + for (p = tmp->ptr + 4; *p && *p == ' '; p++) ; if (sscanf(p, "%04d%02d%02d%02d%02d%02d", &tm.tm_year, &tm.tm_mon, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) < 6)