Re: [PATCH v3 04/25] virTypedParameterAssignValueVArgs: Ensure proper typed param type in caller

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

 



On Wed, Apr 19, 2023 at 02:04:21PM +0200, Peter Krempa wrote:
There are two callers of virTypedParameterAssignValueVArgs.

- 'virTypedParameterAssignValue' always uses the correct type, thus
 doesn't need to be modified. Just use the proper type in the function
 declaration

- 'virTypedParameterAssign' can get improper type, but we can move the
 validation into it decreasing the scope in which failures need to be
 propagated.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>

Reviewed-by: Martin Kletzander <mkletzan@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


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

  Powered by Linux