The libvirt-domain.h header file suggests using virTypedParameter
as virMemoryParameter is just ancient alias for it.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
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