aboutsummaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-06-21 21:06:38 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-06-21 21:06:38 -0400
commit86ad9513a8d090501dd602b00b70fecc31eeaaa4 (patch)
tree5b3d54986b78148658ca43015a579226e278d07c /dpi
parentc1a46d534c0d4b67f71c6e4a378de94ba4c6aaa4 (diff)
Eliminated a pack of 22 compiler warnings (gcc-4.6.1 amd64)
Diffstat (limited to 'dpi')
-rw-r--r--dpi/downloads.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc
index 47ef4e0d..46e847ff 100644
--- a/dpi/downloads.cc
+++ b/dpi/downloads.cc
@@ -599,13 +599,11 @@ static void read_log_cb(int fd_in, void *data)
const int BufLen = 4096;
char Buf[BufLen];
ssize_t st;
- int ret = -1;
do {
st = read(fd_in, Buf, BufLen);
if (st < 0) {
if (errno == EAGAIN) {
- ret = 1;
break;
}
perror("read, ");
@@ -614,7 +612,6 @@ static void read_log_cb(int fd_in, void *data)
close(fd_in);
Fl::remove_fd(fd_in, 1);
dl_item->log_done(1);
- ret = 0;
break;
} else {
dl_item->log_text_add(Buf, st);