commit fd984e767a8e0e4978cfe072899282a8265a911e from: Omar Polo date: Thu May 05 08:54:28 2022 UTC drop the `buffer' flag for enqueue_download it's unused as write_buffer now writes a buffer to the disk. commit - ff48dbfd84e86f5a720e9400a7acb53fe3b9393b commit + fd984e767a8e0e4978cfe072899282a8265a911e blob - 688094dbafe4a14e728cc4f0f42953cc5c52aacb blob + 3b80327d0b28dde9ea9e9b24d56792a8bfd1a9a2 --- downloads.c +++ downloads.c @@ -80,7 +80,7 @@ end: } struct download * -enqueue_download(uint32_t id, const char *path, int buffer) +enqueue_download(uint32_t id, const char *path) { struct download *d; @@ -90,7 +90,6 @@ enqueue_download(uint32_t id, const char *path, int bu 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 @@ -305,12 +305,11 @@ struct download { 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 @@ -473,7 +473,7 @@ handle_save_page_path(const char *path, struct tab *ta } 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); }