mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
util: rename qemu_open() to qemu_open_old()
We want to introduce a new version of qemu_open() that uses an Error object for reporting problems and make this it the preferred interface. Rename the existing method to release the namespace for the new impl. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@ -51,7 +51,7 @@ qio_channel_file_new_path(const char *path,
|
||||
|
||||
ioc = QIO_CHANNEL_FILE(object_new(TYPE_QIO_CHANNEL_FILE));
|
||||
|
||||
ioc->fd = qemu_open(path, flags, mode);
|
||||
ioc->fd = qemu_open_old(path, flags, mode);
|
||||
if (ioc->fd < 0) {
|
||||
object_unref(OBJECT(ioc));
|
||||
error_setg_errno(errp, errno,
|
||||
|
Reference in New Issue
Block a user