[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 27/41] qom: Fix G_DEFINE_AUTOPTR_CLEANUP_FUNC
From: |
Eduardo Habkost |
Subject: |
[PATCH 27/41] qom: Fix G_DEFINE_AUTOPTR_CLEANUP_FUNC |
Date: |
Thu, 13 Aug 2020 18:26:11 -0400 |
ModuleObjName##Class was being used instead of ModuleObjName.
Fix it.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
include/qom/object.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/qom/object.h b/include/qom/object.h
index be64421089..f515230f61 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -571,7 +571,7 @@ struct Object
typedef struct ModuleObjName ModuleObjName; \
typedef struct ModuleObjName##Class ModuleObjName##Class; \
\
- G_DEFINE_AUTOPTR_CLEANUP_FUNC(ModuleObjName##Class, object_unref) \
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(ModuleObjName, object_unref) \
\
static inline G_GNUC_UNUSED ModuleObjName##Class * \
MODULE_OBJ_NAME##_GET_CLASS(void *obj) \
--
2.26.2
- [PATCH 17/41] pci: Move PCIBusClass typedef to pci.h, (continued)
- [PATCH 17/41] pci: Move PCIBusClass typedef to pci.h, Eduardo Habkost, 2020/08/13
- [PATCH 21/41] s390_flic: Move KVMS390FLICState typedef to header, Eduardo Habkost, 2020/08/13
- [PATCH 22/41] can_emu: Delete macros for non-existing typedef, Eduardo Habkost, 2020/08/13
- [PATCH 24/41] platform-bus: Delete macros for non-existing typedef, Eduardo Habkost, 2020/08/13
- [PATCH 27/41] qom: Fix G_DEFINE_AUTOPTR_CLEANUP_FUNC,
Eduardo Habkost <=
- [PATCH 20/41] mcf_fec: Move mcf_fec_state typedef to header, Eduardo Habkost, 2020/08/13
- [PATCH 23/41] nubus: Delete unused NUBUS_BRIDGE macro, Eduardo Habkost, 2020/08/13
- [PATCH 25/41] qom: make object_ref/unref use a void * instead of Object *., Eduardo Habkost, 2020/08/13
- [PATCH 26/41] qom: provide convenient macros for declaring and defining types, Eduardo Habkost, 2020/08/13
- [PATCH 30/41] qom: Make type checker functions accept const pointers, Eduardo Habkost, 2020/08/13