mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-03 14:38:17 +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 {
|
struct BusState {
|
||||||
Object obj;
|
Object obj;
|
||||||
DeviceState *parent;
|
DeviceState *parent;
|
||||||
const char *name;
|
char *name;
|
||||||
int max_index;
|
int max_index;
|
||||||
bool realized;
|
bool realized;
|
||||||
QTAILQ_HEAD(ChildrenHead, BusChild) children;
|
QTAILQ_HEAD(ChildrenHead, BusChild) children;
|
||||||
|
|
Loading…
Reference in a new issue