[PATCH] Fix cu_return_foo calls to match new signature

# HG changeset patch # User Jay Gagnon <grendel@linux.vnet.ibm.com> # Date 1195507146 18000 # Node ID 79f43a4ffc38d7227e17432b971639ae20f6f6ed # Parent e3b63f17f18169dbd41ef979a86e56b46d8a9ae9 Fix cu_return_foo calls to match new signature. Signed-off-by: Jay Gagnon <grendel@linux.vnet.ibm.com> diff -r e3b63f17f181 -r 79f43a4ffc38 src/Virt_ComputerSystem.c --- a/src/Virt_ComputerSystem.c Mon Nov 19 11:15:49 2007 -0800 +++ b/src/Virt_ComputerSystem.c Mon Nov 19 16:19:06 2007 -0500 @@ -356,9 +356,9 @@ static CMPIStatus return_enum_domains(co } if (names_only) - cu_return_instance_names(results, list.list); + cu_return_instance_names(results, &list); else - cu_return_instances(results, list.list); + cu_return_instances(results, &list); CMSetStatus(&s, CMPI_RC_OK); diff -r e3b63f17f181 -r 79f43a4ffc38 src/Virt_Device.c --- a/src/Virt_Device.c Mon Nov 19 11:15:49 2007 -0800 +++ b/src/Virt_Device.c Mon Nov 19 16:19:06 2007 -0500 @@ -366,9 +366,9 @@ static CMPIStatus enum_devices(const CMP goto out; if (names_only) - cu_return_instance_names(results, list.list); + cu_return_instance_names(results, &list); else - cu_return_instances(results, list.list); + cu_return_instances(results, &list); inst_list_free(&list); diff -r e3b63f17f181 -r 79f43a4ffc38 src/Virt_DevicePool.c --- a/src/Virt_DevicePool.c Mon Nov 19 11:15:49 2007 -0800 +++ b/src/Virt_DevicePool.c Mon Nov 19 16:19:06 2007 -0500 @@ -602,9 +602,9 @@ static void __return_pool(const CMPIResu bool name_only) { if (name_only) - cu_return_instance_names(results, list->list); + cu_return_instance_names(results, list); else - cu_return_instances(results, list->list); + cu_return_instances(results, list); } static CMPIStatus return_pool(const CMPIObjectPath *ref,

JG> # HG changeset patch JG> # User Jay Gagnon <grendel@linux.vnet.ibm.com> JG> # Date 1195507146 18000 JG> # Node ID 79f43a4ffc38d7227e17432b971639ae20f6f6ed JG> # Parent e3b63f17f18169dbd41ef979a86e56b46d8a9ae9 JG> Fix cu_return_foo calls to match new signature. JG> Virt_ComputerSystem.c | 4 ++-- JG> Virt_Device.c | 4 ++-- JG> Virt_DevicePool.c | 4 ++-- JG> 3 files changed, 6 insertions(+), 6 deletions(-) I don't think this is all of them. My count looks like this: % grep cu_return src/*.c | cut -d : -f 1 | sort | uniq | wc -l 12 -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

DS> I don't think this is all of them. My count looks like this: Nevermind. Duh. Applied :) -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com

Dan Smith wrote:
DS> I don't think this is all of them. My count looks like this:
Nevermind. Duh. Applied :)
------------------------------------------------------------------------
_______________________________________________ Libvirt-cim mailing list Libvirt-cim@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-cim Heh, I was surprised too. I actually only realized that half of them were single instances when I went to replace "list.list" and found "inst" instead. :)
-- -Jay
participants (2)
-
Dan Smith
-
Jay Gagnon