qemu_file: Make qemu_file_is_writable() static
It is not used outside of qemu_file, and it shouldn't. Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20230530183941.7223-19-quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
cf786549ce
commit
9ccf83f486
@ -228,7 +228,7 @@ void qemu_file_set_error(QEMUFile *f, int ret)
|
||||
qemu_file_set_error_obj(f, ret, NULL);
|
||||
}
|
||||
|
||||
bool qemu_file_is_writable(QEMUFile *f)
|
||||
static bool qemu_file_is_writable(QEMUFile *f)
|
||||
{
|
||||
return f->is_writable;
|
||||
}
|
||||
|
@ -103,7 +103,6 @@ uint64_t qemu_file_transferred_noflush(QEMUFile *f);
|
||||
void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, size_t size,
|
||||
bool may_free);
|
||||
bool qemu_file_mode_is_not_valid(const char *mode);
|
||||
bool qemu_file_is_writable(QEMUFile *f);
|
||||
|
||||
#include "migration/qemu-file-types.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user