On 01/03/2012 01:51 AM, Anthony Liguori wrote:
      d->nic = qemu_new_nic(&net_e1000_info,&d->conf,
-                          qdev_get_info(&d->dev.qdev)->name, d->dev.qdev.id, 
d);
+                          object_get_typename(OBJECT(d)), d->dev.qdev.id, d);

It's a pity that this loses type-safety.

Perhaps we should look at adding a warning for "unsafe" pointer casts to GCC.

Paolo

Reply via email to