diff options
author | Juan Quintela <quintela@redhat.com> | 2023-05-08 15:08:52 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-05-15 13:44:38 +0200 |
commit | bffc0441d52e1b88c7fca857cc8e2d5c24c15c5e (patch) | |
tree | e58b263ca7b2fb110f7c843f51913437596eef3c /migration/qemu-file.h | |
parent | 9d3ebbe21749937f9c9270d0841016e57de3fb92 (diff) | |
download | qemu-bffc0441d52e1b88c7fca857cc8e2d5c24c15c5e.zip qemu-bffc0441d52e1b88c7fca857cc8e2d5c24c15c5e.tar.gz qemu-bffc0441d52e1b88c7fca857cc8e2d5c24c15c5e.tar.bz2 |
qemu-file: make qemu_file_[sg]et_rate_limit() use an uint64_t
It is really size_t. Everything else uses uint64_t, so move this to
uint64_t as well. A size can't be negative anyways.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20230508130909.65420-5-quintela@redhat.com>
Diffstat (limited to 'migration/qemu-file.h')
-rw-r--r-- | migration/qemu-file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/qemu-file.h b/migration/qemu-file.h index 4ee58a8..13c7c78 100644 --- a/migration/qemu-file.h +++ b/migration/qemu-file.h @@ -139,8 +139,8 @@ void qemu_file_reset_rate_limit(QEMUFile *f); * need to be applied to the rate limiting calcuations */ void qemu_file_acct_rate_limit(QEMUFile *f, int64_t len); -void qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate); -int64_t qemu_file_get_rate_limit(QEMUFile *f); +void qemu_file_set_rate_limit(QEMUFile *f, uint64_t new_rate); +uint64_t qemu_file_get_rate_limit(QEMUFile *f); int qemu_file_get_error_obj(QEMUFile *f, Error **errp); int qemu_file_get_error_obj_any(QEMUFile *f1, QEMUFile *f2, Error **errp); void qemu_file_set_error_obj(QEMUFile *f, int ret, Error *err); |