diff options
author | Juan Quintela <quintela@redhat.com> | 2023-05-04 13:38:39 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-05-05 02:01:59 +0200 |
commit | 61abf1ebdcddafdb62ba6784e04c573ae6beace6 (patch) | |
tree | ccef55c399d6db17f8b383257aff86024d9570f8 /migration/block.c | |
parent | ac7d25b8163cfd16604cd7d92135dd14713d084b (diff) | |
download | qemu-61abf1ebdcddafdb62ba6784e04c573ae6beace6.zip qemu-61abf1ebdcddafdb62ba6784e04c573ae6beace6.tar.gz qemu-61abf1ebdcddafdb62ba6784e04c573ae6beace6.tar.bz2 |
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>
Diffstat (limited to 'migration/block.c')
-rw-r--r-- | migration/block.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/migration/block.c b/migration/block.c index 3499f75..a37678c 100644 --- a/migration/block.c +++ b/migration/block.c @@ -747,8 +747,7 @@ static int block_save_setup(QEMUFile *f, void *opaque) static int block_save_iterate(QEMUFile *f, void *opaque) { int ret; - int64_t last_bytes = qemu_file_total_transferred(f); - int64_t delta_bytes; + uint64_t last_bytes = qemu_file_total_transferred(f); trace_migration_block_save("iterate", block_mig_state.submitted, block_mig_state.transferred); @@ -800,7 +799,7 @@ static int block_save_iterate(QEMUFile *f, void *opaque) } qemu_put_be64(f, BLK_MIG_FLAG_EOS); - delta_bytes = qemu_file_total_transferred(f) - last_bytes; + uint64_t delta_bytes = qemu_file_total_transferred(f) - last_bytes; return (delta_bytes > 0); } |