Alejandro Colomar d2d89a8e0a tests/unit/test_xasprintf.c: Fix sign-mismatch diagnostic
Add a signed wrapper around mock() which returns a signed integer.
This makes it possible to compare the return value with literal -1.

Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2025-03-04 00:08:15 +01:00
..