mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
qemu-file: Make total_transferred an uint64_t
Change all the functions that use it. It was already passed as uint64_t. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230504113841.23130-8-quintela@redhat.com>
This commit is contained in:
parent
ac7d25b816
commit
61abf1ebdc
5 changed files with 11 additions and 14 deletions
|
@ -51,7 +51,7 @@ struct QEMUFile {
|
|||
int64_t rate_limit_used;
|
||||
|
||||
/* The sum of bytes transferred on the wire */
|
||||
int64_t total_transferred;
|
||||
uint64_t total_transferred;
|
||||
|
||||
int buf_index;
|
||||
int buf_size; /* 0 when writing */
|
||||
|
@ -708,9 +708,9 @@ int coroutine_mixed_fn qemu_get_byte(QEMUFile *f)
|
|||
return result;
|
||||
}
|
||||
|
||||
int64_t qemu_file_total_transferred_fast(QEMUFile *f)
|
||||
uint64_t qemu_file_total_transferred_fast(QEMUFile *f)
|
||||
{
|
||||
int64_t ret = f->total_transferred;
|
||||
uint64_t ret = f->total_transferred;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < f->iovcnt; i++) {
|
||||
|
@ -720,7 +720,7 @@ int64_t qemu_file_total_transferred_fast(QEMUFile *f)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int64_t qemu_file_total_transferred(QEMUFile *f)
|
||||
uint64_t qemu_file_total_transferred(QEMUFile *f)
|
||||
{
|
||||
qemu_fflush(f);
|
||||
return f->total_transferred;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue