[libvirt-perl][PATCH 2/3] get/set_memory_parameters: Favour virTypedParameter over virMemoryParameter

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

 



The libvirt-domain.h header file suggests using virTypedParameter
as virMemoryParameter is just ancient alias for it.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 Virt.xs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Virt.xs b/Virt.xs
index 99ab150..cf4e5bc 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -4160,14 +4160,14 @@ get_memory_parameters(dom, flags=0)
       virDomainPtr dom;
       unsigned int flags;
   PREINIT:
-      virMemoryParameter *params;
+      virTypedParameterPtr params;
       int nparams;
     CODE:
       nparams = 0;
       if (virDomainGetMemoryParameters(dom, NULL, &nparams, flags) < 0)
           _croak_error();
 
-      Newx(params, nparams, virMemoryParameter);
+      Newx(params, nparams, virTypedParameter);
 
       if (virDomainGetMemoryParameters(dom, params, &nparams, flags) < 0) {
           Safefree(params);
@@ -4193,7 +4193,7 @@ set_memory_parameters(dom, newparams, flags=0)
       if (virDomainGetMemoryParameters(dom, NULL, &nparams, flags) < 0)
           _croak_error();
 
-      Newx(params, nparams, virMemoryParameter);
+      Newx(params, nparams, virTypedParameter);
 
       if (virDomainGetMemoryParameters(dom, params, &nparams, flags) < 0) {
           Safefree(params);
-- 
2.8.4

--
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]