From 063603d43ec428c1acc63c4e1f8593a7b6d164f1 Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Fri, 15 Mar 2019 18:12:18 +0100 Subject: 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 Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- include/authz/pamacct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/authz/pamacct.h') diff --git a/include/authz/pamacct.h b/include/authz/pamacct.h index 6e3046e528..cad5b11d47 100644 --- a/include/authz/pamacct.h +++ b/include/authz/pamacct.h @@ -33,8 +33,8 @@ OBJECT_GET_CLASS(QAuthZPAMClass, (obj), \ TYPE_QAUTHZ_PAM) #define QAUTHZ_PAM(obj) \ - INTERFACE_CHECK(QAuthZPAM, (obj), \ - TYPE_QAUTHZ_PAM) + OBJECT_CHECK(QAuthZPAM, (obj), \ + TYPE_QAUTHZ_PAM) typedef struct QAuthZPAM QAuthZPAM; typedef struct QAuthZPAMClass QAuthZPAMClass; -- cgit v1.2.3-55-g7522