diff options
author | Philippe Mathieu-Daudé | 2019-03-15 18:12:18 +0100 |
---|---|---|
committer | Daniel P. Berrangé | 2019-03-21 12:52:37 +0100 |
commit | 063603d43ec428c1acc63c4e1f8593a7b6d164f1 (patch) | |
tree | 2d988379fb822ae6bb91a8ed14788c7e0c5891bb /include/authz/base.h | |
parent | Update version for v4.0.0-rc0 release (diff) | |
download | qemu-063603d43ec428c1acc63c4e1f8593a7b6d164f1.tar.gz qemu-063603d43ec428c1acc63c4e1f8593a7b6d164f1.tar.xz qemu-063603d43ec428c1acc63c4e1f8593a7b6d164f1.zip |
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/base.h')
-rw-r--r-- | include/authz/base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/authz/base.h b/include/authz/base.h index 77dcd54c4c..55ac9581ad 100644 --- a/include/authz/base.h +++ b/include/authz/base.h @@ -35,8 +35,8 @@ OBJECT_GET_CLASS(QAuthZClass, (obj), \ TYPE_QAUTHZ) #define QAUTHZ(obj) \ - INTERFACE_CHECK(QAuthZ, (obj), \ - TYPE_QAUTHZ) + OBJECT_CHECK(QAuthZ, (obj), \ + TYPE_QAUTHZ) typedef struct QAuthZ QAuthZ; typedef struct QAuthZClass QAuthZClass; |