mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(fish_linear_abort): type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
489c3e3242
commit
07f36b9cf7
@ -1031,13 +1031,13 @@ fish_linear_abort (struct vfs_class *me, vfs_file_handler_t * fh)
|
||||
fish_fh_data_t *fish = (fish_fh_data_t *) fh->data;
|
||||
struct vfs_s_super *super = FH_SUPER;
|
||||
char buffer[BUF_8K];
|
||||
int n;
|
||||
ssize_t n;
|
||||
|
||||
vfs_print_message (_("Aborting transfer..."));
|
||||
|
||||
do
|
||||
{
|
||||
n = MIN (sizeof (buffer), (size_t) (fish->total - fish->got));
|
||||
n = MIN ((off_t) sizeof (buffer), (fish->total - fish->got));
|
||||
if (n != 0)
|
||||
{
|
||||
n = read (SUP->sockr, buffer, n);
|
||||
|
Loading…
Reference in New Issue
Block a user