aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:21:07 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:21:07 +0000
commit719d13ef10fd4d26d832086566cae21e4ca306ad (patch)
tree868a1373a373b9f8145b5cb81dc6357c4a67d53f /main.c
parent[w3m-dev 03431] save file by background process (diff)
downloadw3m-719d13ef10fd4d26d832086566cae21e4ca306ad.tar.gz
w3m-719d13ef10fd4d26d832086566cae21e4ca306ad.zip
fix indent
Diffstat (limited to 'main.c')
-rw-r--r--main.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/main.c b/main.c
index 5e37dcc..e85e64c 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.132 2002/11/15 15:19:46 ukai Exp $ */
+/* $Id: main.c,v 1.133 2002/11/15 15:21:07 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -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) {