tools/libxc: Shuffle definitions and uses of min()/max() macros
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Jul 2014 14:32:05 +0000 (15:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 18 Jul 2014 12:38:08 +0000 (13:38 +0100)
commit78bf682c36fa4c4969e020a1a38306ce836d18ad
tree4389a64c4f1742e5773258fc6b6f54e0a7d4d538
parent88c10b0d6eeea50302fa276ec78ac0ded393a979
tools/libxc: Shuffle definitions and uses of min()/max() macros

Move the typesafe min() macro from xc_dom_decompress_unsafe_xz.c to
xc_private.h, and complement it with an equivalent max() macro.

Replace current users of type unsafe MIN()/MAX() macros, and remove their
scattered definitions.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_core_x86.c
tools/libxc/xc_dom_decompress_unsafe_xz.c
tools/libxc/xc_domain_restore.c
tools/libxc/xc_private.h
tools/libxc/xg_private.h
tools/libxc/xg_save_restore.h