From 021ce52a525a03fbff93ccb810cab85c79720e56 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sat, 14 Dec 2002 15:26:44 +0000 Subject: fix indent --- display.c | 10 +++++----- file.c | 11 ++++++----- ftp.c | 5 ++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/display.c b/display.c index d5c3f3b..f8c02bc 100644 --- a/display.c +++ b/display.c @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.46 2002/12/13 02:19:01 ukai Exp $ */ +/* $Id: display.c,v 1.47 2002/12/14 15:26:44 ukai Exp $ */ #include #include "fm.h" @@ -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 index 50ca6c2..18396a1 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.161 2002/12/14 15:24:03 ukai Exp $ */ +/* $Id: file.c,v 1.162 2002/12/14 15:26:44 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -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 index 47c7fd0..613a9a1 100644 --- a/ftp.c +++ b/ftp.c @@ -1,4 +1,4 @@ -/* $Id: ftp.c,v 1.16 2002/12/14 15:18:38 ukai Exp $ */ +/* $Id: ftp.c,v 1.17 2002/12/14 15:26:44 ukai Exp $ */ #include #include #include @@ -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) -- cgit v1.2.3