]> git.ipfire.org Git - thirdparty/shadow.git/commit
tests/unit/test_xasprintf.c: Fix sign-mismatch diagnostic
authorAlejandro Colomar <alx@kernel.org>
Sun, 9 Feb 2025 13:10:55 +0000 (14:10 +0100)
committerAlejandro Colomar <alx@kernel.org>
Mon, 3 Mar 2025 23:08:15 +0000 (00:08 +0100)
commitd2d89a8e0a4f177ae9cdb1ef8e0a1287a39020b5
tree3c27c5db4bce037809c5966b2bd45be5ef43415a
parentda7d4ed898d8fcb69362c03c01201807c4f4823d
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>
tests/unit/test_xasprintf.c