commit - ff48dbfd84e86f5a720e9400a7acb53fe3b9393b
commit + fd984e767a8e0e4978cfe072899282a8265a911e
blob - 688094dbafe4a14e728cc4f0f42953cc5c52aacb
blob + 3b80327d0b28dde9ea9e9b24d56792a8bfd1a9a2
--- downloads.c
+++ downloads.c
}
struct download *
-enqueue_download(uint32_t id, const char *path, int buffer)
+enqueue_download(uint32_t id, const char *path)
{
struct download *d;
d->id = id;
d->fd = -1;
d->path = strdup(path);
- d->buffer = buffer;
STAILQ_INSERT_HEAD(&downloads, d, entries);
blob - 800a7f43e7649cf6a81b642cd0bb4108c3f23d21
blob + 801b4ae3314d142d7ea42a6c572f5cb8d4939e45
--- include/telescope.h
+++ include/telescope.h
int fd;
size_t bytes;
char *path;
- int buffer;
STAILQ_ENTRY(download) entries;
};
void recompute_downloads(void);
-struct download *enqueue_download(uint32_t, const char *, int);
+struct download *enqueue_download(uint32_t, const char *);
void dequeue_first_download(void);
struct download *download_by_id(uint32_t);
blob - efd5439c04b3d84b8126422e2a32f276a2f1a3fb
blob + 426494c1236e98746456cd9ff662230b5f390668
--- telescope.c
+++ telescope.c
}
ui_show_downloads_pane();
- d = enqueue_download(tab->id, path, 0);
+ d = enqueue_download(tab->id, path);
d->fd = fd;
ui_send_net(IMSG_PROCEED, d->id, NULL, 0);
}