diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-03-15 18:12:18 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2019-03-21 11:52:37 +0000 |
commit | 063603d43ec428c1acc63c4e1f8593a7b6d164f1 (patch) | |
tree | 2d988379fb822ae6bb91a8ed14788c7e0c5891bb /include/authz/listfile.h | |
parent | 62a172e6a77d9072bb1a18f295ce0fcf4b90a4f2 (diff) |
authz: Use OBJECT_CHECK() on objects
TYPE_QAUTHZ is an abstract object of type TYPE_OBJECT. All other
are children of TYPE_QAUTHZ, thus also objects.
Keep INTERFACE_CHECK() for interfaces, and use OBJECT_CHECK() on
objects.
Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include/authz/listfile.h')
-rw-r--r-- | include/authz/listfile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/authz/listfile.h b/include/authz/listfile.h index bcc8d80743..ebbd5a4288 100644 --- a/include/authz/listfile.h +++ b/include/authz/listfile.h @@ -34,8 +34,8 @@ OBJECT_GET_CLASS(QAuthZListFileClass, (obj), \ TYPE_QAUTHZ_LIST_FILE) #define QAUTHZ_LIST_FILE(obj) \ - INTERFACE_CHECK(QAuthZListFile, (obj), \ - TYPE_QAUTHZ_LIST_FILE) + OBJECT_CHECK(QAuthZListFile, (obj), \ + TYPE_QAUTHZ_LIST_FILE) typedef struct QAuthZListFile QAuthZListFile; typedef struct QAuthZListFileClass QAuthZListFileClass; |