[PATCHv3 03/26] security: manager: Avoid forward decl of virSecurityManagerDispose

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/security/security_manager.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/security/security_manager.c b/src/security/security_manager.c
index d57bab9..84d90ac 100644
--- a/src/security/security_manager.c
+++ b/src/security/security_manager.c
@@ -48,7 +48,17 @@ struct _virSecurityManager {

 static virClassPtr virSecurityManagerClass;

-static void virSecurityManagerDispose(void *obj);
+
+static
+void virSecurityManagerDispose(void *obj)
+{
+    virSecurityManagerPtr mgr = obj;
+
+    if (mgr->drv->close)
+        mgr->drv->close(mgr);
+    VIR_FREE(mgr->privateData);
+}
+

 static int virSecurityManagerOnceInit(void)
 {
@@ -231,15 +241,6 @@ void *virSecurityManagerGetPrivateData(virSecurityManagerPtr mgr)
 }


-static void virSecurityManagerDispose(void *obj)
-{
-    virSecurityManagerPtr mgr = obj;
-
-    if (mgr->drv->close)
-        mgr->drv->close(mgr);
-    VIR_FREE(mgr->privateData);
-}
-
 const char *
 virSecurityManagerGetDriver(virSecurityManagerPtr mgr)
 {
-- 
1.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]