(fish_linear_abort): type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-10-29 10:03:01 +04:00
parent 489c3e3242
commit 07f36b9cf7
1 changed files with 2 additions and 2 deletions

View File

@ -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);