w3m

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

commit 28c645ebfb14c3046b42743a10c04b096da083b8
parent f88fec758a3124b1cb377fb5d3a6c07fdadb264e
Author: ukai <ukai>
Date:   Fri, 15 Nov 2002 15:21:07 +0000

fix indent

Diffstat:
Mfile.c | 16++++++++--------
Mmain.c | 13+++++++------
2 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/file.c b/file.c @@ -1945,8 +1945,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, if (pu.scheme == SCM_LOCAL) { UFclose(&f); _doFileCopy(pu.real_file, - conv_from_system(guess_save_name - (NULL, pu.real_file)), TRUE); + conv_from_system(guess_save_name + (NULL, pu.real_file)), TRUE); } else { if (DecodeCTE && IStype(f.stream) != IST_ENCODED) @@ -7314,12 +7314,12 @@ doFileSave(URLFile uf, char *defstr) disp_err_message(msg->ptr, FALSE); return; } -/* - if (save2tmp(uf, p) < 0) { - msg = Sprintf("Can't save to %s", p); - disp_err_message(msg->ptr, FALSE); - } -*/ + /* + * if (save2tmp(uf, p) < 0) { + * msg = Sprintf("Can't save to %s", p); + * disp_err_message(msg->ptr, FALSE); + * } + */ lock = tmpfname(TMPF_DFL, ".lock")->ptr; #if defined(HAVE_SYMLINK) && defined(HAVE_LSTAT) symlink(p, lock); diff --git a/main.c b/main.c @@ -5822,7 +5822,7 @@ DownloadListBuffer(void) duration / (60 * 60), (duration / 60) % 60, duration % 60, convert_size(rate, 1))); if (!d->ok && size < d->size && rate) { - eta = (d->size - size) / rate; + eta = (d->size - size) / rate; Strcat(src, Sprintf(" eta %02d:%02d:%02d", eta / (60 * 60), (eta / 60) % 60, eta % 60)); } @@ -5832,10 +5832,11 @@ DownloadListBuffer(void) Strcat(src, Sprintf("<input type=submit name=ok%d value=OK>", d->pid)); if (size < d->size) - Strcat_charp(src, " Download incompleted"); + Strcat_charp(src, " Download incompleted"); else - Strcat_charp(src, " Download completed"); - } else + Strcat_charp(src, " Download completed"); + } + else Strcat(src, Sprintf("<input type=submit name=stop%d value=STOP>", d->pid)); Strcat_charp(src, "\n</pre><hr>\n"); @@ -5854,11 +5855,11 @@ download_action(struct parsed_tagarg *arg) if (!strcmp(arg->arg, "update")) break; else if (!strncmp(arg->arg, "stop", 4)) { - pid = (pid_t)atoi(&arg->arg[4]); + pid = (pid_t) atoi(&arg->arg[4]); kill(pid, SIGKILL); } else if (!strncmp(arg->arg, "ok", 2)) - pid = (pid_t)atoi(&arg->arg[2]); + pid = (pid_t) atoi(&arg->arg[2]); else continue; for (d = FirstDL; d; d = d->next) {