mirror of
https://github.com/mii443/qemu.git
synced 2025-12-07 21:18:22 +00: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user