mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 05:35:32 +00:00
bus: simplify name handling
Simplify a bit the code by using g_strdup_printf() and store it in a non-const value so casting is no longer needed, and ownership is clearer. Backports commit f73480c36f49562556b80bb5bf8acc45e20dcca1 from qemu
This commit is contained in:
parent
af3cd62c4b
commit
9ec040b74d
|
@ -202,7 +202,7 @@ typedef struct BusChild {
|
|||
struct BusState {
|
||||
Object obj;
|
||||
DeviceState *parent;
|
||||
const char *name;
|
||||
char *name;
|
||||
int max_index;
|
||||
bool realized;
|
||||
QTAILQ_HEAD(ChildrenHead, BusChild) children;
|
||||
|
|
Loading…
Reference in a new issue