diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-01 16:12:16 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-01 16:12:16 -0500 |
commit | c227f0995e1722a1abccc28cadf0664266bd8043 (patch) | |
tree | 39e92c2f818e3e8144978740b914731613af0e40 /hw/qdev-addr.c | |
parent | 99a0949b720a0936da2052cb9a46db04ffc6db29 (diff) |
Revert "Get rid of _t suffix"
In the very least, a change like this requires discussion on the list.
The naming convention is goofy and it causes a massive merge problem. Something
like this _must_ be presented on the list first so people can provide input
and cope with it.
This reverts commit 99a0949b720a0936da2052cb9a46db04ffc6db29.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev-addr.c')
-rw-r--r-- | hw/qdev-addr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/qdev-addr.c b/hw/qdev-addr.c index 32922363ee..305c2d37b0 100644 --- a/hw/qdev-addr.c +++ b/hw/qdev-addr.c @@ -6,7 +6,7 @@ static int parse_taddr(DeviceState *dev, Property *prop, const char *str) { - a_target_phys_addr *ptr = qdev_get_prop_ptr(dev, prop); + target_phys_addr_t *ptr = qdev_get_prop_ptr(dev, prop); *ptr = strtoull(str, NULL, 16); return 0; @@ -14,19 +14,19 @@ static int parse_taddr(DeviceState *dev, Property *prop, const char *str) static int print_taddr(DeviceState *dev, Property *prop, char *dest, size_t len) { - a_target_phys_addr *ptr = qdev_get_prop_ptr(dev, prop); + target_phys_addr_t *ptr = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, "0x" TARGET_FMT_plx, *ptr); } PropertyInfo qdev_prop_taddr = { .name = "taddr", .type = PROP_TYPE_TADDR, - .size = sizeof(a_target_phys_addr), + .size = sizeof(target_phys_addr_t), .parse = parse_taddr, .print = print_taddr, }; -void qdev_prop_set_taddr(DeviceState *dev, const char *name, a_target_phys_addr value) +void qdev_prop_set_taddr(DeviceState *dev, const char *name, target_phys_addr_t value) { qdev_prop_set(dev, name, &value, PROP_TYPE_TADDR); } |