[Libguestfs] [PATCH libnbd] common/include/checked-overflow.h: Simplify

Eric Blake eblake at redhat.com
Wed Nov 10 18:56:26 UTC 2021


On Wed, Nov 10, 2021 at 08:49:27PM +0200, Nir Soffer wrote:
> We don't need separate macros for size_t and uint64_t since the compiler
> builtins are generic. If we need to port to a complier that does not have
> generic builtins, it is likely that we can do this in a generic way.
> 
> Signed-off-by: Nir Soffer <nsoffer at redhat.com>
> ---
>  common/include/checked-overflow.h | 18 ++++--------------
>  common/utils/vector.c             | 10 +++++-----
>  2 files changed, 9 insertions(+), 19 deletions(-)

ACK.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org




More information about the Libguestfs mailing list