]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/pcnet-pci.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / hw / net / pcnet-pci.c
index 27f6566d5f4625508b4f2342d6e0e7f0d6b515d9..449970bc52dcfe922384e35594580012a0a26e5a 100644 (file)
@@ -53,8 +53,8 @@
 #define TYPE_PCI_PCNET "pcnet"
 
 typedef struct PCIPCNetState PCIPCNetState;
-#define PCI_PCNET(obj) \
-     OBJECT_CHECK(PCIPCNetState, (obj), TYPE_PCI_PCNET)
+DECLARE_INSTANCE_CHECKER(PCIPCNetState, PCI_PCNET,
+                         TYPE_PCI_PCNET)
 
 struct PCIPCNetState {
     /*< private >*/