]> Git Repo - qemu.git/commit - hw/i386/pc.c
hw/i386/pc.c: Don't use load_image()
authorPeter Maydell <[email protected]>
Fri, 14 Dec 2018 13:30:51 +0000 (13:30 +0000)
committerPeter Maydell <[email protected]>
Fri, 14 Dec 2018 13:30:51 +0000 (13:30 +0000)
commitc24323dd5f04d2a8c89f1d0d8daf0322b6fa6fc7
tree20e944203c6731dbc6b5d7f1bdf9803774ddf8c4
parent36bde0911f7a1eec2ea0a9e1405d69b922d63f25
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 <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 20181130151712[email protected]
hw/i386/pc.c
This page took 0.02552 seconds and 4 git commands to generate.