diff options
author | Juan Quintela <quintela@redhat.com> | 2023-05-30 20:39:41 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-07-26 10:55:56 +0200 |
commit | ac6f48e15d09412dcc4e4ac93019b6c97dc26a3c (patch) | |
tree | 4632c265ed1578b310c2280d684ec5e5b87f84db /migration | |
parent | 8c5ee0bfb86eae89c5480dc616bb9d2234ac1fd6 (diff) | |
download | qemu-ac6f48e15d09412dcc4e4ac93019b6c97dc26a3c.zip qemu-ac6f48e15d09412dcc4e4ac93019b6c97dc26a3c.tar.gz qemu-ac6f48e15d09412dcc4e4ac93019b6c97dc26a3c.tar.bz2 |
qemu-file: Make qemu_file_get_error_obj() static
It was not used outside of qemu_file.c anyways.
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20230530183941.7223-21-quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/qemu-file.c | 2 | ||||
-rw-r--r-- | migration/qemu-file.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/migration/qemu-file.c b/migration/qemu-file.c index 4c577bd..d30bf3c 100644 --- a/migration/qemu-file.c +++ b/migration/qemu-file.c @@ -158,7 +158,7 @@ void qemu_file_set_hooks(QEMUFile *f, const QEMUFileHooks *hooks) * is not 0. * */ -int qemu_file_get_error_obj(QEMUFile *f, Error **errp) +static int qemu_file_get_error_obj(QEMUFile *f, Error **errp) { if (errp) { *errp = f->last_error_obj ? error_copy(f->last_error_obj) : NULL; diff --git a/migration/qemu-file.h b/migration/qemu-file.h index a081ef6..8b8b7d2 100644 --- a/migration/qemu-file.h +++ b/migration/qemu-file.h @@ -128,7 +128,6 @@ void qemu_file_skip(QEMUFile *f, int size); * accounting information tracks the total migration traffic. */ void qemu_file_credit_transfer(QEMUFile *f, size_t size); -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); void qemu_file_set_error(QEMUFile *f, int ret); |