diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2018-12-14 13:30:51 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2018-12-14 13:30:51 +0000 |
| commit | c24323dd5f04d2a8c89f1d0d8daf0322b6fa6fc7 (patch) | |
| tree | 20e944203c6731dbc6b5d7f1bdf9803774ddf8c4 /hw/core/loader.c | |
| parent | 36bde0911f7a1eec2ea0a9e1405d69b922d63f25 (diff) | |
| download | focaccia-qemu-c24323dd5f04d2a8c89f1d0d8daf0322b6fa6fc7.tar.gz focaccia-qemu-c24323dd5f04d2a8c89f1d0d8daf0322b6fa6fc7.zip | |
hw/i386/pc.c: Don't use load_image()
The load_image() function is deprecated, as it does not let the caller specify how large the buffer to read the file into is. Use the glib g_file_get_contents() function instead, which does the whole "allocate memory for the file and read it in" operation. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20181130151712.2312-6-peter.maydell@linaro.org
Diffstat (limited to 'hw/core/loader.c')
0 files changed, 0 insertions, 0 deletions