diff options
author | Eric Auger <eric.auger@redhat.com> | 2023-10-19 15:45:11 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2023-11-03 09:20:31 +0100 |
commit | 43f04cbeff863ae68b6ead432af5e771b92b934c (patch) | |
tree | 8eadc58b4b93d0255f7f65f8d4c1aa59cf8496b5 /util | |
parent | 41cc70cdf53268cd1bc9719014acf739932b51e5 (diff) |
range: Make range_compare() public
Let's expose range_compare() in the header so that it can be
reused outside of util/range.c
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/range.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/util/range.c b/util/range.c index 098d9d2dc0..782cb8b21c 100644 --- a/util/range.c +++ b/util/range.c @@ -20,11 +20,7 @@ #include "qemu/osdep.h" #include "qemu/range.h" -/* - * Return -1 if @a < @b, 1 @a > @b, and 0 if they touch or overlap. - * Both @a and @b must not be empty. - */ -static inline int range_compare(Range *a, Range *b) +int range_compare(Range *a, Range *b) { assert(!range_is_empty(a) && !range_is_empty(b)); |